Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005177/0.005177, allocations: 92.84 kB / 15.91 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001468, allocations: 194.9 kB / 16.84 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1783/0.1783, allocations: 12.02 MB / 302.7 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 59.91 kB / 365.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1205, allocations: 52.32 MB / 418.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004356/0.1249, allocations: 2.769 MB / 420.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009171/0.1258, allocations: 0.6428 MB / 421.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.872e-05/0.1259, allocations: 7.938 kB / 421.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.1262, allocations: 51.7 kB / 421.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.088e-05/0.1263, allocations: 15.86 kB / 421.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.1266, allocations: 111.7 kB / 421.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.1268, allocations: 175.9 kB / 421.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.127, allocations: 116 kB / 422 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.015e-05/0.1271, allocations: 59.78 kB / 422 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.1272, allocations: 75.61 kB / 422.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.1272, allocations: 8 kB / 422.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.544e-05/0.1273, allocations: 39.92 kB / 422.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.045e-05/0.1274, allocations: 35.84 kB / 422.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.794e-05/0.1275, allocations: 87.41 kB / 422.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.1278, allocations: 211.6 kB / 422.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1278, allocations: 0 / 422.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1278, allocations: 4 kB / 422.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1278, allocations: 0 / 422.5 MB, free: 1.262 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006156/0.1284, allocations: 482.5 kB / 422.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.1285, allocations: 8.031 kB / 423 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.407e-05/0.1285, allocations: 24.66 kB / 423 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.1288, allocations: 243.9 kB / 423.2 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1288, allocations: 8.375 kB / 423.2 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.1288, allocations: 16.38 kB / 423.2 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.1292, allocations: 197.5 kB / 423.4 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1292, allocations: 0 / 423.4 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.1292, allocations: 7.984 kB / 423.4 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1292, allocations: 4 kB / 423.4 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.1294, allocations: 91.89 kB / 423.5 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2282/0.3576, allocations: 0.5653 MB / 424.1 MB, free: 41.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.3578, allocations: 66.38 kB / 424.2 MB, free: 41.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.901e-05/0.3578, allocations: 32.12 kB / 424.2 MB, free: 41.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.3579, allocations: 3.469 kB / 424.2 MB, free: 41.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002547/0.3581, allocations: 90.27 kB / 424.3 MB, free: 41.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.945e-06/0.3581, allocations: 0.7812 kB / 424.3 MB, free: 41.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003231/0.3585, allocations: 139.6 kB / 424.4 MB, free: 41.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.3585, allocations: 84.45 kB / 424.5 MB, free: 41.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.3587, allocations: 182 kB / 424.7 MB, free: 41.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.3587, allocations: 34.61 kB / 424.7 MB, free: 41.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.497e-05/0.3588, allocations: 144.4 kB / 424.9 MB, free: 41.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.3588, allocations: 21.81 kB / 424.9 MB, free: 41.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.394e-05/0.3589, allocations: 45.19 kB / 424.9 MB, free: 41.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.174e-05/0.359, allocations: 334.2 kB / 425.3 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.93e-05/0.359, allocations: 24.84 kB / 425.3 MB, free: 41.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.544e-05/0.3591, allocations: 112.6 kB / 425.4 MB, free: 40.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.3594, allocations: 193.3 kB / 425.6 MB, free: 40.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3594, allocations: 1.625 kB / 425.6 MB, free: 40.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002818/0.3597, allocations: 186.3 kB / 425.8 MB, free: 40.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3597, allocations: 8.422 kB / 425.8 MB, free: 40.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3597, allocations: 7.578 kB / 425.8 MB, free: 40.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.3597, allocations: 5.062 kB / 425.8 MB, free: 40.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.3598, allocations: 21.52 kB / 425.8 MB, free: 40.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.3599, allocations: 10.14 kB / 425.8 MB, free: 40.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.159e-05/0.3599, allocations: 14.38 kB / 425.8 MB, free: 40.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.36, allocations: 10.66 kB / 425.8 MB, free: 40.79 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: realtimeSynchronize.rtSync_Sampled.simTime:DISCRETE(flow=false unit = "s" fixed = true ) "(= time) Simulation time at the the real-time sync function invocation" type: Real realtimeSynchronize.rtSync_Sampled.lastSimTime:DISCRETE(unit = "s" fixed = true ) "Simulation time at the previous invocation of the real-time sync function, the simulation start time at its the first invocation" type: Real realtimeSynchronize.rtSync_Sampled.computingTime:DISCRETE(flow=false unit = "s" fixed = true ) "Wall clock time between invocations of the real-time sync function, i.e., "computing time" in seconds" type: Real realtimeSynchronize.rtSync_Sampled.remainingTime:DISCRETE(flow=false unit = "s" fixed = true ) "Wall clock time that is left before real-time deadline is reached" type: Real realtimeSynchronize.rtSync_Sampled.wallClockTime:DISCRETE(flow=false unit = "s" fixed = true ) "Wall clock time (= real-time) that elapsed since initialization of the real-time synchronization object" type: Real realtimeSynchronize.rtSync_Sampled.lastStepSize:DISCRETE(unit = "s" fixed = true ) "(= time - lastSimTime) The last simulation time step size between invocations of the real-time sync function" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.realtimeSynchronize.rtSync_Sampled.simTime,realtimeSynchronize.rtSync_Sampled.simTime,$PRE.realtimeSynchronize.rtSync_Sampled.lastSimTime,realtimeSynchronize.rtSync_Sampled.lastSimTime,$PRE.realtimeSynchronize.rtSync_Sampled.computingTime,realtimeSynchronize.rtSync_Sampled.computingTime,$PRE.realtimeSynchronize.rtSync_Sampled.remainingTime,realtimeSynchronize.rtSync_Sampled.remainingTime,$PRE.realtimeSynchronize.rtSync_Sampled.wallClockTime,realtimeSynchronize.rtSync_Sampled.wallClockTime,$PRE.realtimeSynchronize.rtSync_Sampled.lastStepSize,realtimeSynchronize.rtSync_Sampled.lastStepSize,pre1.u,$whenCondition2,realtimeSynchronize.trigger,$PRE.pre1.u,$whenCondition1,realtimeSynchronize.rtSync_Sampled.internalTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002521/0.3602, allocations: 188.5 kB / 426 MB, free: 40.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.3603, allocations: 15.84 kB / 426 MB, free: 40.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.3603, allocations: 15.41 kB / 426.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3603, allocations: 4.688 kB / 426.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.3603, allocations: 1.406 kB / 426.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3603, allocations: 0 / 426.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.3607, allocations: 432 kB / 426.5 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3608, allocations: 0.6094 kB / 426.5 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.037e-05/0.3608, allocations: 9.031 kB / 426.5 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3608, allocations: 0 / 426.5 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3608, allocations: 5.969 kB / 426.5 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3608, allocations: 0 / 426.5 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3608, allocations: 5.062 kB / 426.5 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.361, allocations: 214.3 kB / 426.7 MB, free: 40.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-05/0.361, allocations: 88.42 kB / 426.8 MB, free: 40.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.3611, allocations: 8.375 kB / 426.8 MB, free: 40.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.757e-05/0.3611, allocations: 1.922 kB / 426.8 MB, free: 40.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.226e-05/0.3612, allocations: 13.27 kB / 426.8 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.3612, allocations: 7.719 kB / 426.8 MB, free: 40.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.784e-05/0.3613, allocations: 123.2 kB / 426.9 MB, free: 40.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3613, allocations: 0 / 426.9 MB, free: 40.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003081/0.3616, allocations: 48.55 kB / 427 MB, free: 40.01 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (realtimeSynchronize.rtSync_Sampled.internalTrigger,realtimeSynchronize.trigger,$whenCondition2,$whenCondition1,pre1.u,realtimeSynchronize.rtSync_Sampled.wallClockTime,realtimeSynchronize.rtSync_Sampled.remainingTime,realtimeSynchronize.rtSync_Sampled.computingTime,realtimeSynchronize.rtSync_Sampled.simTime,realtimeSynchronize.rtSync_Sampled.lastStepSize,realtimeSynchronize.rtSync_Sampled.lastSimTime) * Number of discrete states: 1 (pre1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006011/0.3622, allocations: 272 kB / 427.3 MB, free: 39.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001903/0.3624, allocations: 97.45 kB / 427.4 MB, free: 39.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3624, allocations: 0 / 427.4 MB, free: 39.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.249e-05/0.3625, allocations: 33.91 kB / 427.4 MB, free: 39.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.3628, allocations: 15 kB / 427.4 MB, free: 39.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005999/0.3634, allocations: 375.3 kB / 427.8 MB, free: 39.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.3636, allocations: 0.7363 MB / 428.5 MB, free: 38.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.558e-05/0.3636, allocations: 18.97 kB / 428.5 MB, free: 38.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.3636, allocations: 19.72 kB / 428.5 MB, free: 38.95 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.3637, allocations: 4 kB / 428.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of Templates: time 0.004316/0.368, allocations: 1.443 MB / 430 MB, free: 38.82 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe 2>&1)