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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 221.5 MB / 230 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008632/0.0008633, allocations: 92.02 kB / 280.9 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.06469/0.06469, allocations: 11.92 MB / 343.6 MB, free: 3.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.523e-05/1.524e-05, allocations: 5.312 kB / 403.1 MB, free: 45.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09669, allocations: 53.35 MB / 456.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3434/0.4401, allocations: 82.39 MB / 0.5262 GB, free: 16.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001779/0.4403, allocations: 70.62 kB / 0.5263 GB, free: 16.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008702/0.4491, allocations: 3.371 MB / 0.5296 GB, free: 16.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4491, allocations: 3.938 kB / 0.5296 GB, free: 16.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.4491, allocations: 12.75 kB / 0.5296 GB, free: 16.47 MB / 362.7 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.0003869/0.4495, allocations: 426.2 kB / 0.53 GB, free: 16.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.4495, allocations: 10.41 kB / 0.53 GB, free: 16.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.4496, allocations: 21.16 kB / 0.5301 GB, free: 16.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.4499, allocations: 255.9 kB / 0.5303 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.4499, allocations: 5.969 kB / 0.5303 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.4499, allocations: 13.44 kB / 0.5303 GB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001554/0.4501, allocations: 74.11 kB / 0.5304 GB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.4503, allocations: 174.3 kB / 0.5305 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.4503, allocations: 3.984 kB / 0.5306 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.4504, allocations: 7.344 kB / 0.5306 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4504, allocations: 3.5 kB / 0.5306 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005706/0.451, allocations: 0.5209 MB / 0.5311 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.906e-05/0.4511, allocations: 63.02 kB / 0.5311 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.571e-05/0.4511, allocations: 32.66 kB / 0.5312 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.4511, allocations: 1.281 kB / 0.5312 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001045/0.4512, allocations: 89.31 kB / 0.5313 GB, free: 15.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.4512, allocations: 0 / 0.5313 GB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002058/0.4515, allocations: 105.4 kB / 0.5314 GB, free: 15.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.4515, allocations: 85.33 kB / 0.5314 GB, free: 15.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.4516, allocations: 155.2 kB / 0.5316 GB, free: 15.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.4516, allocations: 30.02 kB / 0.5316 GB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.097e-05/0.4517, allocations: 145.5 kB / 0.5317 GB, free: 14.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.4517, allocations: 21.42 kB / 0.5318 GB, free: 14.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-06/0.4517, allocations: 4.031 kB / 0.5318 GB, free: 14.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.512e-05/0.4518, allocations: 332.4 kB / 0.5321 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.656e-05/0.4518, allocations: 18.28 kB / 0.5321 GB, free: 14.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.677e-05/0.4519, allocations: 111.7 kB / 0.5322 GB, free: 14.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.225e-05/0.452, allocations: 45.12 kB / 0.5323 GB, free: 14.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.452, allocations: 1.5 kB / 0.5323 GB, free: 14.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002191/0.4522, allocations: 160.4 kB / 0.5324 GB, free: 14.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.4522, allocations: 6.219 kB / 0.5324 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.4523, allocations: 6.875 kB / 0.5324 GB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.4523, allocations: 5.438 kB / 0.5324 GB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.773e-05/0.4524, allocations: 26.22 kB / 0.5325 GB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.4524, allocations: 3.75 kB / 0.5325 GB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.187e-05/0.4524, allocations: 7.906 kB / 0.5325 GB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.4525, allocations: 7.5 kB / 0.5325 GB, free: 14.39 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: realtimeSynchronize.rtSync_Sampled.simTime:DISCRETE(unit = "s" fixed = false ) "(= time) Simulation time at the the real-time sync function invocation" type: Real realtimeSynchronize.rtSync_Sampled.lastSimTime:DISCRETE(unit = "s" fixed = false ) "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(unit = "s" fixed = false ) "Wall clock time between invocations of the real-time sync function, i.e., "computing time" in seconds" type: Real realtimeSynchronize.rtSync_Sampled.remainingTime:DISCRETE(unit = "s" fixed = false ) "Wall clock time that is left before real-time deadline is reached" type: Real realtimeSynchronize.rtSync_Sampled.wallClockTime:DISCRETE(unit = "s" fixed = false ) "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 = false ) "(= 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,pre1.y,realtimeSynchronize.rtSync_Sampled.internalTrigger) * Number of discrete 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.0001194/0.4526, allocations: 156.7 kB / 0.5326 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.02e-05/0.4526, allocations: 14.59 kB / 0.5326 GB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.4526, allocations: 14.8 kB / 0.5326 GB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.4527, allocations: 6.609 kB / 0.5327 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4527, allocations: 1.219 kB / 0.5327 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4527, allocations: 1.094 kB / 0.5327 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000308/0.453, allocations: 385.8 kB / 0.533 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.453, allocations: 0 / 0.533 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.278e-06/0.453, allocations: 5.156 kB / 0.533 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.453, allocations: 3.125 kB / 0.533 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.453, allocations: 1.219 kB / 0.533 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.453, allocations: 5.094 kB / 0.533 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4531, allocations: 1.531 kB / 0.533 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.4532, allocations: 226.9 kB / 0.5333 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.609e-05/0.4532, allocations: 92.17 kB / 0.5333 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.4533, allocations: 2.094 kB / 0.5333 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.4533, allocations: 3.078 kB / 0.5333 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.626e-05/0.4534, allocations: 4.125 kB / 0.5334 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.4534, allocations: 11.47 kB / 0.5334 GB, free: 13.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.974e-05/0.4535, allocations: 111.2 kB / 0.5335 GB, free: 13.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4535, allocations: 0 / 0.5335 GB, free: 13.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002932/0.4538, allocations: 37.84 kB / 0.5335 GB, free: 13.6 MB / 362.7 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,pre1.y,$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) * 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.0004572/0.4542, allocations: 278.4 kB / 0.5338 GB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001639/0.4544, allocations: 80.69 kB / 0.5338 GB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4544, allocations: 1.5 kB / 0.5339 GB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.474e-05/0.4545, allocations: 30.53 kB / 0.5339 GB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/0.4547, allocations: 12.34 kB / 0.5339 GB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007557/0.4554, allocations: 320 kB / 0.5342 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005884/0.456, allocations: 0.7415 MB / 0.5349 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.746e-05/0.4561, allocations: 16.75 kB / 0.5349 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.596e-05/0.4561, allocations: 21.22 kB / 0.535 GB, free: 28.58 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4561, allocations: 0 / 0.535 GB, free: 28.58 MB / 378.7 MB Notification: Performance of Templates: time 0.003687/0.4598, allocations: 1.361 MB / 0.5363 GB, free: 28.41 MB / 378.7 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)