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.001328/0.001328, allocations: 118.5 kB / 17.13 MB, free: 5.918 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.001377/0.001377, allocations: 193.4 kB / 18.07 MB, free: 4.988 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.457/1.457, allocations: 222.9 MB / 241.7 MB, free: 15.16 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.06274/0.06274, allocations: 12.06 MB / 304 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 63.89 kB / 420.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.11, allocations: 52.32 MB / 473.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004855/0.1148, allocations: 2.745 MB / 475.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.1161, allocations: 0.666 MB / 476.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1162, allocations: 7.938 kB / 476.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002805/0.1164, allocations: 59.5 kB / 476.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.1166, allocations: 23.8 kB / 476.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003598/0.1169, allocations: 131.1 kB / 476.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002658/0.1172, allocations: 176 kB / 476.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.1174, allocations: 84.03 kB / 476.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.1175, allocations: 71.72 kB / 477 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.1176, allocations: 83.55 kB / 477.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.409e-05/0.1177, allocations: 16 kB / 477.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.34e-05/0.1178, allocations: 39.98 kB / 477.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.948e-05/0.1178, allocations: 51.84 kB / 477.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.118, allocations: 83.52 kB / 477.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003473/0.1183, allocations: 223 kB / 477.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1183, allocations: 3.938 kB / 477.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1183, allocations: 0 / 477.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.1183, allocations: 4 kB / 477.5 MB, free: 8.371 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.0006793/0.119, allocations: 498.2 kB / 478 MB, free: 7.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.119, allocations: 12.03 kB / 478 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.1191, allocations: 24.73 kB / 478 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.1194, allocations: 240 kB / 478.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.1194, allocations: 12.38 kB / 478.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.1195, allocations: 20.34 kB / 478.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.1198, allocations: 197.4 kB / 478.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1198, allocations: 0 / 478.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.1199, allocations: 8 kB / 478.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1199, allocations: 4 kB / 478.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001594/0.12, allocations: 91.75 kB / 478.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008328/0.1209, allocations: 0.5706 MB / 479.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.121, allocations: 65.14 kB / 479.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.492e-05/0.121, allocations: 25.78 kB / 479.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.1211, allocations: 0 / 479.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.1213, allocations: 101 kB / 479.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.1213, allocations: 0 / 479.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003217/0.1216, allocations: 133.5 kB / 479.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.413e-05/0.1217, allocations: 89.11 kB / 479.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.1219, allocations: 178.8 kB / 479.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.122, allocations: 29.7 kB / 479.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1221, allocations: 148.2 kB / 479.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.1221, allocations: 23.84 kB / 479.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.1222, allocations: 45.83 kB / 480 MB, free: 5.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1223, allocations: 326.8 kB / 480.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.007e-05/0.1224, allocations: 27.92 kB / 480.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.1225, allocations: 112 kB / 480.4 MB, free: 5.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.1228, allocations: 198.9 kB / 480.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1228, allocations: 0 / 480.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002962/0.1231, allocations: 185.2 kB / 480.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1231, allocations: 4.375 kB / 480.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1231, allocations: 8 kB / 480.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.1232, allocations: 4 kB / 480.8 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.03e-05/0.1232, allocations: 27.92 kB / 480.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.1233, allocations: 7.938 kB / 480.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.911e-05/0.1233, allocations: 11.95 kB / 480.9 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.1233, allocations: 8 kB / 480.9 MB, free: 4.645 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.0002653/0.1236, allocations: 185.6 kB / 481.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.1236, allocations: 15.91 kB / 481.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.1237, allocations: 17.39 kB / 481.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1237, allocations: 3.938 kB / 481.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1237, allocations: 3.938 kB / 481.1 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1237, allocations: 0 / 481.1 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/0.1242, allocations: 426.4 kB / 481.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1242, allocations: 4 kB / 481.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.371e-05/0.1242, allocations: 7.984 kB / 481.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1242, allocations: 3.938 kB / 481.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1243, allocations: 8 kB / 481.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1243, allocations: 0 / 481.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.1243, allocations: 4 kB / 481.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.1245, allocations: 220.2 kB / 481.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.44e-05/0.1246, allocations: 96.94 kB / 481.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.1246, allocations: 0 / 481.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.722e-05/0.1247, allocations: 0 / 481.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.1247, allocations: 7.984 kB / 481.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.1247, allocations: 8 kB / 481.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.1248, allocations: 128.2 kB / 482 MB, free: 3.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1248, allocations: 0 / 482 MB, free: 3.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.1252, allocations: 43.83 kB / 482 MB, free: 3.391 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.0007861/0.1259, allocations: 273.1 kB / 482.3 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002377/0.1262, allocations: 91.78 kB / 482.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1262, allocations: 0 / 482.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.042e-05/0.1262, allocations: 31.92 kB / 482.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.1265, allocations: 8 kB / 482.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006346/0.1271, allocations: 312.6 kB / 482.7 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.1276, allocations: 0.7396 MB / 483.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.843e-05/0.1276, allocations: 13.42 kB / 483.5 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.839e-05/0.1277, allocations: 15.44 kB / 483.5 MB, free: 1.93 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1277, allocations: 8 kB / 483.5 MB, free: 1.922 MB / 350.1 MB Notification: Performance of Templates: time 0.005279/0.133, allocations: 1.507 MB / 485 MB, free: 432 kB / 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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe 2>&1)