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.0007043/0.0007043, allocations: 95.59 kB / 16.72 MB, free: 6.617 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.0007576/0.0007575, allocations: 176.3 kB / 17.62 MB, free: 6.152 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.239/1.239, allocations: 223.3 MB / 241.7 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05537/0.05537, allocations: 12.05 MB / 304.8 MB, free: 2.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002644, allocations: 11.98 kB / 368.9 MB, free: 2.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1693, allocations: 53.37 MB / 422.3 MB, free: 20.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.002317/0.1717, allocations: 2.406 MB / 424.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007177/0.1724, allocations: 0.6381 MB / 425.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.881e-05/0.1725, allocations: 3.938 kB / 425.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.1727, allocations: 47.77 kB / 425.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.272e-05/0.1728, allocations: 20.33 kB / 425.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.1731, allocations: 111.7 kB / 425.5 MB, free: 17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.1732, allocations: 171.9 kB / 425.7 MB, free: 16.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.1734, allocations: 108.9 kB / 425.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.695e-05/0.1735, allocations: 60.42 kB / 425.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.978e-05/0.1736, allocations: 59.64 kB / 425.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.1736, allocations: 6.406 kB / 425.9 MB, free: 16.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.97e-05/0.1737, allocations: 27.98 kB / 425.9 MB, free: 16.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.029e-05/0.1737, allocations: 39.83 kB / 426 MB, free: 16.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.104e-05/0.1738, allocations: 93.25 kB / 426.1 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.1739, allocations: 157.5 kB / 426.2 MB, free: 16.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1739, allocations: 0 / 426.2 MB, free: 16.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.174, allocations: 0 / 426.2 MB, free: 16.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.174, allocations: 3.312 kB / 426.2 MB, free: 16.3 MB / 302.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.0004008/0.1744, allocations: 442.9 kB / 426.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.1744, allocations: 11.97 kB / 426.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.69e-05/0.1745, allocations: 20.75 kB / 426.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/0.1746, allocations: 244.5 kB / 426.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.1747, allocations: 16.38 kB / 427 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.1747, allocations: 12.38 kB / 427 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.175, allocations: 193.5 kB / 427.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.175, allocations: 0 / 427.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.175, allocations: 11.98 kB / 427.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.175, allocations: 4 kB / 427.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.1751, allocations: 91.89 kB / 427.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.1757, allocations: 0.5742 MB / 427.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.155e-05/0.1758, allocations: 65.2 kB / 427.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.65e-05/0.1759, allocations: 37.72 kB / 427.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.1759, allocations: 0 / 427.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001282/0.176, allocations: 97 kB / 428 MB, free: 14.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.092e-06/0.176, allocations: 3.938 kB / 428 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002337/0.1763, allocations: 129.5 kB / 428.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.1763, allocations: 92.98 kB / 428.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.1764, allocations: 178.3 kB / 428.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1765, allocations: 37.64 kB / 428.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.638e-05/0.1765, allocations: 148.1 kB / 428.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.1765, allocations: 23.73 kB / 428.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.1766, allocations: 29.7 kB / 428.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.944e-05/0.1766, allocations: 322.8 kB / 429 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.037e-05/0.1767, allocations: 28.11 kB / 429 MB, free: 13.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.926e-05/0.1768, allocations: 113.3 kB / 429.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.177, allocations: 194.9 kB / 429.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.177, allocations: 8 kB / 429.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000222/0.1772, allocations: 181.2 kB / 429.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.1772, allocations: 8 kB / 429.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1772, allocations: 0 / 429.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.1772, allocations: 4 kB / 429.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.994e-05/0.1773, allocations: 20.31 kB / 429.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.1773, allocations: 15.92 kB / 429.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.762e-05/0.1774, allocations: 19.84 kB / 429.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.1774, allocations: 4 kB / 429.6 MB, free: 12.62 MB / 302.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.0001529/0.1776, allocations: 182.9 kB / 429.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.967e-05/0.1776, allocations: 23.8 kB / 429.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.664e-05/0.1776, allocations: 13.41 kB / 429.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1776, allocations: 0 / 429.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.1776, allocations: 3.938 kB / 429.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1777, allocations: 4 kB / 429.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.178, allocations: 434.6 kB / 430.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.178, allocations: 0 / 430.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.788e-06/0.178, allocations: 7.938 kB / 430.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.178, allocations: 7.938 kB / 430.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.178, allocations: 0 / 430.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.178, allocations: 4 kB / 430.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.178, allocations: 0 / 430.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.1782, allocations: 212.2 kB / 430.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.397e-05/0.1782, allocations: 96.84 kB / 430.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.1782, allocations: 0 / 430.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.926e-05/0.1783, allocations: 4 kB / 430.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.1784, allocations: 11.94 kB / 430.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.1784, allocations: 7.984 kB / 430.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.194e-05/0.1784, allocations: 123.2 kB / 430.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1784, allocations: 0 / 430.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.1788, allocations: 47.78 kB / 430.7 MB, free: 11.36 MB / 302.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.0004401/0.1792, allocations: 267.2 kB / 431 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001606/0.1794, allocations: 91.86 kB / 431.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1794, allocations: 0 / 431.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.167e-05/0.1794, allocations: 43.86 kB / 431.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.1797, allocations: 15.92 kB / 431.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004846/0.1802, allocations: 402 kB / 431.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.1803, allocations: 0.736 MB / 432.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.677e-05/0.1804, allocations: 19.42 kB / 432.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1804, allocations: 0 / 432.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of Templates: time 0.003328/0.1837, allocations: 2.329 MB / 434.6 MB, free: 7.48 MB / 302.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)