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.001106/0.001106, allocations: 180.2 kB / 15.8 MB, free: 6.34 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.326/1.326, allocations: 223.2 MB / 239.7 MB, free: 1.801 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.000969/0.000969, allocations: 100.2 kB / 290.9 MB, free: 13.94 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.05203/0.05203, allocations: 12.05 MB / 354.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003135/0.0003137, allocations: 8.859 kB / 417.9 MB, free: 87.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07877/0.0791, allocations: 53.37 MB / 471.2 MB, free: 37.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2863/0.3654, allocations: 83.11 MB / 0.5414 GB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001802/0.3657, allocations: 79.67 kB / 0.5414 GB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008011/0.3737, allocations: 3.416 MB / 0.5448 GB, free: 30.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3737, allocations: 0 / 0.5448 GB, free: 30.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.3737, allocations: 7.938 kB / 0.5448 GB, free: 30.95 MB / 378.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.0003874/0.3741, allocations: 449.8 kB / 0.5452 GB, free: 30.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.3742, allocations: 9.531 kB / 0.5452 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.614e-05/0.3742, allocations: 23.56 kB / 0.5452 GB, free: 30.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.3744, allocations: 250.4 kB / 0.5455 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.3745, allocations: 11.28 kB / 0.5455 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.004e-05/0.3745, allocations: 26.86 kB / 0.5455 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.3748, allocations: 187.1 kB / 0.5457 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.3748, allocations: 0 / 0.5457 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.3748, allocations: 4.375 kB / 0.5457 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3748, allocations: 3.719 kB / 0.5457 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.3749, allocations: 92.22 kB / 0.5458 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005555/0.3755, allocations: 0.5665 MB / 0.5463 GB, free: 29.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.819e-05/0.3756, allocations: 71.84 kB / 0.5464 GB, free: 29.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.3756, allocations: 3.562 kB / 0.5464 GB, free: 29.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.721e-05/0.3757, allocations: 84.36 kB / 0.5465 GB, free: 29.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.462e-06/0.3757, allocations: 0 / 0.5465 GB, free: 29.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002341/0.376, allocations: 216.2 kB / 0.5467 GB, free: 29.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/0.376, allocations: 92.83 kB / 0.5468 GB, free: 29.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.842e-05/0.3761, allocations: 159.6 kB / 0.5469 GB, free: 29.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.3761, allocations: 35.5 kB / 0.547 GB, free: 29.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.3762, allocations: 146.4 kB / 0.5471 GB, free: 29.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.3762, allocations: 21.09 kB / 0.5471 GB, free: 29.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.3762, allocations: 3.938 kB / 0.5471 GB, free: 29.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.294e-05/0.3763, allocations: 329.7 kB / 0.5475 GB, free: 28.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.549e-05/0.3763, allocations: 22.62 kB / 0.5475 GB, free: 28.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.155e-05/0.3764, allocations: 118.3 kB / 0.5476 GB, free: 28.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.566e-05/0.3765, allocations: 49.17 kB / 0.5476 GB, free: 28.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3765, allocations: 3.938 kB / 0.5476 GB, free: 28.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001966/0.3767, allocations: 182.5 kB / 0.5478 GB, free: 28.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.3767, allocations: 9.531 kB / 0.5478 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3767, allocations: 3.875 kB / 0.5478 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.3767, allocations: 3.875 kB / 0.5478 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-05/0.3768, allocations: 27.55 kB / 0.5479 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.3768, allocations: 7.75 kB / 0.5479 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.899e-05/0.3769, allocations: 11.78 kB / 0.5479 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.3769, allocations: 11.59 kB / 0.5479 GB, free: 28.73 MB / 378.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.0001475/0.377, allocations: 188.8 kB / 0.5481 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.3771, allocations: 11.62 kB / 0.5481 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.3771, allocations: 14.75 kB / 0.5481 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3771, allocations: 4 kB / 0.5481 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3771, allocations: 3.875 kB / 0.5481 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3771, allocations: 1.734 kB / 0.5481 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003023/0.3774, allocations: 430.7 kB / 0.5485 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3774, allocations: 0 / 0.5485 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.937e-06/0.3775, allocations: 7.656 kB / 0.5485 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3775, allocations: 0 / 0.5485 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.3775, allocations: 1.594 kB / 0.5485 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3775, allocations: 7.875 kB / 0.5485 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3775, allocations: 0 / 0.5485 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001351/0.3776, allocations: 230.1 kB / 0.5488 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/0.3777, allocations: 90.59 kB / 0.5488 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.3777, allocations: 3.938 kB / 0.5488 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.478e-05/0.3778, allocations: 5.844 kB / 0.5488 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.431e-05/0.3778, allocations: 14.09 kB / 0.5489 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.3778, allocations: 9.703 kB / 0.5489 GB, free: 27.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.567e-05/0.3779, allocations: 118.3 kB / 0.549 GB, free: 27.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3779, allocations: 0 / 0.549 GB, free: 27.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002903/0.3782, allocations: 44.47 kB / 0.549 GB, free: 27.89 MB / 378.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.0004225/0.3786, allocations: 278.7 kB / 0.5493 GB, free: 27.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001445/0.3787, allocations: 100.7 kB / 0.5494 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3788, allocations: 0 / 0.5494 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.911e-05/0.3788, allocations: 28.64 kB / 0.5494 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001577/0.379, allocations: 11.06 kB / 0.5494 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007094/0.3797, allocations: 469.7 kB / 0.5499 GB, free: 27.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.38, allocations: 0.7439 MB / 0.5506 GB, free: 26.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.807e-05/0.38, allocations: 18.41 kB / 0.5506 GB, free: 26.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.3801, allocations: 17.06 kB / 0.5506 GB, free: 26.78 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3801, allocations: 0 / 0.5506 GB, free: 26.78 MB / 378.7 MB Notification: Performance of Templates: time 0.003313/0.3834, allocations: 1.404 MB / 0.552 GB, free: 26.61 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)