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.0009141/0.0009141, allocations: 103.5 kB / 15.74 MB, free: 428 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 179.7 kB / 16.62 MB, free: 6.891 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.251/1.251, allocations: 223.2 MB / 240.6 MB, free: 5.449 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.1796/0.1796, allocations: 12.03 MB / 303.7 MB, free: 1.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004778/0.0004779, allocations: 8 kB / 367.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 53.34 MB / 420.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004506/0.1368, allocations: 2.342 MB / 423.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1382, allocations: 0.612 MB / 423.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.1384, allocations: 7.938 kB / 423.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002685/0.1387, allocations: 39.77 kB / 423.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.1389, allocations: 43.8 kB / 423.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.1393, allocations: 107.7 kB / 424 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002549/0.1396, allocations: 120.2 kB / 424.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.1398, allocations: 86.56 kB / 424.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.403e-05/0.1399, allocations: 51.77 kB / 424.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.1401, allocations: 55.7 kB / 424.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.1401, allocations: 7.938 kB / 424.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.392e-05/0.1402, allocations: 16 kB / 424.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.82e-05/0.1403, allocations: 35.84 kB / 424.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.714e-05/0.1404, allocations: 57.62 kB / 424.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002543/0.1406, allocations: 155.9 kB / 424.6 MB, free: 376 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.1406, allocations: 0 / 424.6 MB, free: 376 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.1407, allocations: 0 / 424.6 MB, free: 376 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1407, allocations: 3.938 kB / 424.6 MB, free: 372 kB / 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.2158/0.3565, allocations: 443.4 kB / 425.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.3565, allocations: 14.14 kB / 425.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.839e-05/0.3566, allocations: 22.62 kB / 425.1 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.357, allocations: 235.5 kB / 425.3 MB, free: 39.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.357, allocations: 11.95 kB / 425.3 MB, free: 39.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.332e-05/0.357, allocations: 16.28 kB / 425.4 MB, free: 39.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.3574, allocations: 187.5 kB / 425.5 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.3575, allocations: 0 / 425.5 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.3575, allocations: 7.312 kB / 425.5 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.3575, allocations: 4.969 kB / 425.5 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001975/0.3577, allocations: 87.31 kB / 425.6 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009102/0.3587, allocations: 0.5717 MB / 426.2 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001168/0.3588, allocations: 67.61 kB / 426.3 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.3588, allocations: 3.125 kB / 426.3 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.359, allocations: 90.72 kB / 426.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.555e-06/0.359, allocations: 3.812 kB / 426.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003658/0.3594, allocations: 222 kB / 426.6 MB, free: 38.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.3595, allocations: 84.19 kB / 426.7 MB, free: 38.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.3596, allocations: 181.4 kB / 426.8 MB, free: 38.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.3597, allocations: 30.8 kB / 426.9 MB, free: 38.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.02e-05/0.3598, allocations: 141.8 kB / 427 MB, free: 38.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.3598, allocations: 30.03 kB / 427 MB, free: 38.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/0.3598, allocations: 3.75 kB / 427 MB, free: 38.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.463e-05/0.3599, allocations: 327.8 kB / 427.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.781e-05/0.3599, allocations: 25.39 kB / 427.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.3601, allocations: 114.7 kB / 427.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.3602, allocations: 43.5 kB / 427.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.3602, allocations: 0.9375 kB / 427.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003244/0.3605, allocations: 187.7 kB / 427.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3605, allocations: 6.969 kB / 427.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3606, allocations: 2.969 kB / 427.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3606, allocations: 4.25 kB / 427.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.705e-05/0.3607, allocations: 25.05 kB / 427.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.3607, allocations: 9.906 kB / 427.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.3608, allocations: 16.31 kB / 427.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.3608, allocations: 11.16 kB / 427.8 MB, free: 37.59 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,$whenCondition2,pre1.u,$whenCondition1,$PRE.pre1.u,realtimeSynchronize.trigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.3611, allocations: 184.6 kB / 428 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.3611, allocations: 13.81 kB / 428 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.685e-05/0.3611, allocations: 13.42 kB / 428 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3612, allocations: 3.531 kB / 428 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3612, allocations: 0.5625 kB / 428 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3612, allocations: 0.6562 kB / 428 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000455/0.3616, allocations: 434.2 kB / 428.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3617, allocations: 1.25 kB / 428.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.145e-05/0.3617, allocations: 2.031 kB / 428.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3617, allocations: 6.953 kB / 428.4 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.3617, allocations: 6.5 kB / 428.5 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3617, allocations: 3.938 kB / 428.5 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3617, allocations: 3.234 kB / 428.5 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.3619, allocations: 228.5 kB / 428.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.114e-05/0.362, allocations: 83.98 kB / 428.8 MB, free: 36.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.362, allocations: 10.39 kB / 428.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.3621, allocations: 1 kB / 428.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.083e-05/0.3622, allocations: 3.578 kB / 428.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.3622, allocations: 16.92 kB / 428.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.543e-05/0.3623, allocations: 123.1 kB / 428.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3623, allocations: 0 / 428.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004784/0.3628, allocations: 46.72 kB / 429 MB, free: 36.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006468/0.3634, allocations: 275.7 kB / 429.2 MB, free: 36.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002216/0.3637, allocations: 98.88 kB / 429.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3637, allocations: 0 / 429.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.387e-05/0.3638, allocations: 34.89 kB / 429.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.364, allocations: 12.84 kB / 429.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000613/0.3646, allocations: 354.7 kB / 429.7 MB, free: 36.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.3648, allocations: 0.7367 MB / 430.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.005e-05/0.3649, allocations: 20.52 kB / 430.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/0.3649, allocations: 14.16 kB / 430.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.365, allocations: 4 kB / 430.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of Templates: time 0.004982/0.3699, allocations: 1.407 MB / 431.9 MB, free: 35.55 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)