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.001216/0.001216, allocations: 107 kB / 17.13 MB, free: 6.035 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.00118/0.00118, allocations: 195.3 kB / 18.07 MB, free: 5.113 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.217/1.217, allocations: 222.9 MB / 241.8 MB, free: 15.07 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.05446/0.05446, allocations: 12.05 MB / 304 MB, free: 3.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.89 kB / 420.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07224/0.0734, allocations: 52.31 MB / 473.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.00365/0.07707, allocations: 2.737 MB / 475.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000943/0.07803, allocations: 0.6737 MB / 476.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.548e-05/0.07814, allocations: 11.94 kB / 476.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.07836, allocations: 55.58 kB / 476.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.675e-05/0.07848, allocations: 23.73 kB / 476.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.07878, allocations: 123.4 kB / 476.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.07899, allocations: 187.9 kB / 476.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.0792, allocations: 112 kB / 477 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.333e-05/0.07929, allocations: 79.64 kB / 477.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.0794, allocations: 79.62 kB / 477.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.07944, allocations: 16 kB / 477.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.681e-05/0.07953, allocations: 47.97 kB / 477.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/0.0796, allocations: 43.84 kB / 477.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.148e-05/0.07969, allocations: 87.53 kB / 477.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.07995, allocations: 223.2 kB / 477.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.07996, allocations: 0 / 477.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.07997, allocations: 0 / 477.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.07998, allocations: 0 / 477.5 MB, free: 8.324 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.0005219/0.08051, allocations: 494.4 kB / 478 MB, free: 7.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.08055, allocations: 8.031 kB / 478 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.962e-05/0.0806, allocations: 16.75 kB / 478 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.08085, allocations: 247.9 kB / 478.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.08087, allocations: 8.375 kB / 478.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.08091, allocations: 24.3 kB / 478.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.08121, allocations: 193.4 kB / 478.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.08123, allocations: 0 / 478.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.08125, allocations: 4 kB / 478.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.08127, allocations: 4 kB / 478.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.08141, allocations: 91.81 kB / 478.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006773/0.08209, allocations: 0.5741 MB / 479.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.48e-05/0.0822, allocations: 65.2 kB / 479.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.888e-05/0.08225, allocations: 25.78 kB / 479.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.08227, allocations: 8 kB / 479.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.08243, allocations: 96.97 kB / 479.4 MB, free: 6.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.08244, allocations: 4 kB / 479.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002475/0.08269, allocations: 125.8 kB / 479.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.08275, allocations: 89.17 kB / 479.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.08291, allocations: 182.7 kB / 479.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.08294, allocations: 33.7 kB / 479.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.309e-05/0.08302, allocations: 144.1 kB / 479.9 MB, free: 5.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.08305, allocations: 19.8 kB / 480 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-05/0.08312, allocations: 45.61 kB / 480 MB, free: 5.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.08323, allocations: 326.8 kB / 480.3 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.374e-05/0.08328, allocations: 23.92 kB / 480.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.0834, allocations: 120 kB / 480.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.08363, allocations: 190.9 kB / 480.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.08364, allocations: 4 kB / 480.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002571/0.0839, allocations: 189.2 kB / 480.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.08392, allocations: 8 kB / 480.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.08394, allocations: 4 kB / 480.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.08395, allocations: 7.938 kB / 480.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.198e-05/0.08403, allocations: 19.92 kB / 480.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.08404, allocations: 8.016 kB / 480.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/0.08412, allocations: 20.22 kB / 480.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.08414, allocations: 16.03 kB / 480.9 MB, free: 4.594 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.0001847/0.08433, allocations: 173.4 kB / 481.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.08436, allocations: 11.81 kB / 481.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.0844, allocations: 17.39 kB / 481.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.08441, allocations: 4 kB / 481.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.08441, allocations: 4 kB / 481.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.08446, allocations: 92.8 kB / 481.2 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.08448, allocations: 8 kB / 481.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.74e-05/0.08453, allocations: 0 / 481.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.804e-05/0.08456, allocations: 7.984 kB / 481.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002103/0.08478, allocations: 260.2 kB / 481.5 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002276/0.08501, allocations: 373.8 kB / 481.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.016e-05/0.08507, allocations: 31.97 kB / 481.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.556e-05/0.08517, allocations: 124.2 kB / 482 MB, free: 3.465 MB / 350.1 MB Notification: Performance of Backend: time 2.81e-07/0.08517, allocations: 0 / 482 MB, free: 3.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008654/0.08604, allocations: 317.7 kB / 482.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of SimCode: time 0.0005802/0.08663, allocations: 0.7274 MB / 483 MB, free: 2.438 MB / 350.1 MB Notification: Performance of Templates: time 0.004009/0.09065, allocations: 1.538 MB / 484.6 MB, free: 0.9062 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)