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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.001505/0.001505, allocations: 169 kB / 16.8 MB, free: 4.906 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.3 MB / 240.8 MB, free: 9.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008055/0.000805, allocations: 96.91 kB / 292 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05266/0.05266, allocations: 12.04 MB / 355.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003329, allocations: 19.98 kB / 419.2 MB, free: 53.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08313/0.08348, allocations: 53.34 MB / 472.5 MB, free: 204 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2664/0.3499, allocations: 83.15 MB / 0.5426 GB, free: 14.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.3502, allocations: 75.97 kB / 0.5427 GB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00868/0.3589, allocations: 3.416 MB / 0.546 GB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3589, allocations: 0 / 0.546 GB, free: 10.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.3589, allocations: 11.94 kB / 0.5461 GB, free: 10.9 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.0004391/0.3594, allocations: 451.7 kB / 0.5465 GB, free: 10.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.3594, allocations: 8.031 kB / 0.5465 GB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.679e-05/0.3595, allocations: 20.66 kB / 0.5465 GB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.3597, allocations: 259.9 kB / 0.5468 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.3598, allocations: 12.31 kB / 0.5468 GB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.3598, allocations: 16.38 kB / 0.5468 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.3601, allocations: 189.5 kB / 0.547 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.3601, allocations: 192 / 0.547 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.3601, allocations: 11.94 kB / 0.547 GB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3601, allocations: 4 kB / 0.547 GB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.3603, allocations: 83.95 kB / 0.5471 GB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006663/0.3609, allocations: 0.5666 MB / 0.5476 GB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.384e-05/0.3611, allocations: 69.2 kB / 0.5477 GB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.199e-05/0.3611, allocations: 33.77 kB / 0.5477 GB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.3611, allocations: 3.938 kB / 0.5477 GB, free: 9.012 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.3613, allocations: 93.17 kB / 0.5478 GB, free: 8.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.3613, allocations: 0 / 0.5478 GB, free: 8.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002595/0.3615, allocations: 133.4 kB / 0.5479 GB, free: 8.766 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.3616, allocations: 89.09 kB / 0.548 GB, free: 8.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.3618, allocations: 183.7 kB / 0.5482 GB, free: 8.473 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.3618, allocations: 33.69 kB / 0.5482 GB, free: 8.434 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.815e-05/0.3619, allocations: 151.3 kB / 0.5484 GB, free: 8.285 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.3619, allocations: 19.92 kB / 0.5484 GB, free: 8.266 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.3619, allocations: 4 kB / 0.5484 GB, free: 8.262 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.933e-05/0.362, allocations: 330.8 kB / 0.5487 GB, free: 7.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.544e-05/0.3621, allocations: 20 kB / 0.5487 GB, free: 7.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.3622, allocations: 112 kB / 0.5488 GB, free: 7.758 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.3624, allocations: 200 kB / 0.549 GB, free: 7.523 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3624, allocations: 0 / 0.549 GB, free: 7.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002414/0.3627, allocations: 181.2 kB / 0.5492 GB, free: 7.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3627, allocations: 8.375 kB / 0.5492 GB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3627, allocations: 7.938 kB / 0.5492 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.3627, allocations: 7.984 kB / 0.5492 GB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.296e-05/0.3628, allocations: 24.22 kB / 0.5492 GB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3628, allocations: 4 kB / 0.5493 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.089e-05/0.3629, allocations: 11.88 kB / 0.5493 GB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.3629, allocations: 15.94 kB / 0.5493 GB, free: 7.262 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: realtimeSynchronize.rtSync_Sampled.simTime:DISCRETE(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(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(unit = "s" fixed = true ) "Wall clock time that is left before real-time deadline is reached" type: Real realtimeSynchronize.rtSync_Sampled.wallClockTime:DISCRETE(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,pre1.y,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.0002052/0.3631, allocations: 189.4 kB / 0.5495 GB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.3632, allocations: 11.91 kB / 0.5495 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.247e-05/0.3632, allocations: 17.39 kB / 0.5495 GB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3632, allocations: 0 / 0.5495 GB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3632, allocations: 0 / 0.5495 GB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3632, allocations: 3.938 kB / 0.5495 GB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003986/0.3636, allocations: 426.4 kB / 0.5499 GB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3636, allocations: 3.984 kB / 0.5499 GB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.017e-06/0.3637, allocations: 3.938 kB / 0.5499 GB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3637, allocations: 4 kB / 0.5499 GB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.3637, allocations: 7.938 kB / 0.5499 GB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.3637, allocations: 0 / 0.5499 GB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3637, allocations: 0 / 0.5499 GB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.3639, allocations: 224.1 kB / 0.5501 GB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.3639, allocations: 85.02 kB / 0.5502 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.364, allocations: 7.938 kB / 0.5502 GB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.38e-05/0.364, allocations: 3.984 kB / 0.5502 GB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.3641, allocations: 8 kB / 0.5502 GB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.3641, allocations: 11.98 kB / 0.5502 GB, free: 6.176 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.855e-05/0.3642, allocations: 115.8 kB / 0.5504 GB, free: 6.062 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3642, allocations: 0 / 0.5504 GB, free: 6.062 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002929/0.3645, allocations: 47.84 kB / 0.5504 GB, free: 6.016 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) * 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.0005073/0.365, allocations: 271.9 kB / 0.5507 GB, free: 5.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001679/0.3652, allocations: 95.84 kB / 0.5507 GB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3652, allocations: 0 / 0.5507 GB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.551e-05/0.3652, allocations: 31.92 kB / 0.5508 GB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.3655, allocations: 12.81 kB / 0.5508 GB, free: 5.676 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009191/0.3664, allocations: 483.8 kB / 0.5513 GB, free: 5.176 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.3667, allocations: 0.736 MB / 0.552 GB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.618e-05/0.3668, allocations: 21.42 kB / 0.552 GB, free: 4.395 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.811e-05/0.3668, allocations: 19.42 kB / 0.552 GB, free: 4.375 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3668, allocations: 0 / 0.552 GB, free: 4.375 MB / 362.7 MB Notification: Performance of Templates: time 0.003875/0.3707, allocations: 1.408 MB / 0.5534 GB, free: 2.977 MB / 362.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)