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.0009747/0.0009746, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.277/1.277, allocations: 221.4 MB / 235.1 MB, free: 14.44 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.0008892/0.0008893, allocations: 93.91 kB / 286.1 MB, free: 13 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.05144/0.05144, allocations: 11.9 MB / 348.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.58e-05/2.584e-05, allocations: 4 kB / 410.1 MB, free: 58.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07979/0.07983, allocations: 53.35 MB / 463.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3258/0.4057, allocations: 83.05 MB / 0.5337 GB, free: 232 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/0.4059, allocations: 75.45 kB / 0.5338 GB, free: 192 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008443/0.4144, allocations: 3.389 MB / 0.5371 GB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4144, allocations: 0 / 0.5371 GB, free: 13.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.4144, allocations: 11.94 kB / 0.5371 GB, free: 13.3 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.0004032/0.4149, allocations: 431.4 kB / 0.5375 GB, free: 12.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.4149, allocations: 11.97 kB / 0.5375 GB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.415, allocations: 23.81 kB / 0.5375 GB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.4153, allocations: 253.7 kB / 0.5378 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.4153, allocations: 14.91 kB / 0.5378 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.4153, allocations: 19.14 kB / 0.5378 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.4156, allocations: 183.5 kB / 0.538 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.4156, allocations: 0 / 0.538 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.4156, allocations: 7.812 kB / 0.538 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.4156, allocations: 4 kB / 0.538 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001367/0.4158, allocations: 90.72 kB / 0.5381 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007087/0.4165, allocations: 0.567 MB / 0.5386 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.723e-05/0.4166, allocations: 68.38 kB / 0.5387 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.088e-05/0.4167, allocations: 31.59 kB / 0.5387 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.4167, allocations: 7.938 kB / 0.5387 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/0.4168, allocations: 96.39 kB / 0.5388 GB, free: 11.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.4168, allocations: 0 / 0.5388 GB, free: 11.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002068/0.417, allocations: 104.8 kB / 0.5389 GB, free: 11.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.4171, allocations: 88.11 kB / 0.539 GB, free: 11.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.4173, allocations: 164.4 kB / 0.5392 GB, free: 11.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.4173, allocations: 37.31 kB / 0.5392 GB, free: 11.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.4174, allocations: 144.6 kB / 0.5393 GB, free: 11.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.4174, allocations: 18.94 kB / 0.5394 GB, free: 11.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.4174, allocations: 7.438 kB / 0.5394 GB, free: 11.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.4175, allocations: 329.7 kB / 0.5397 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.989e-05/0.4176, allocations: 18.44 kB / 0.5397 GB, free: 10.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.4177, allocations: 115.3 kB / 0.5398 GB, free: 10.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.821e-05/0.4178, allocations: 50.28 kB / 0.5399 GB, free: 10.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4178, allocations: 0 / 0.5399 GB, free: 10.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002459/0.418, allocations: 182.7 kB / 0.54 GB, free: 10.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.4181, allocations: 11.94 kB / 0.54 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.4181, allocations: 0 / 0.54 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4181, allocations: 4 kB / 0.5401 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.846e-05/0.4182, allocations: 23.31 kB / 0.5401 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.4182, allocations: 11.92 kB / 0.5401 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.91e-05/0.4183, allocations: 4 kB / 0.5401 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.4183, allocations: 11.5 kB / 0.5401 GB, free: 10.29 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.0001635/0.4184, allocations: 164.2 kB / 0.5403 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.004e-05/0.4185, allocations: 11.81 kB / 0.5403 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.384e-05/0.4185, allocations: 12.72 kB / 0.5403 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.4185, allocations: 0 / 0.5403 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4185, allocations: 4 kB / 0.5403 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4185, allocations: 0 / 0.5403 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004182/0.419, allocations: 436.1 kB / 0.5407 GB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.419, allocations: 4 kB / 0.5407 GB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-06/0.419, allocations: 0 / 0.5407 GB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.419, allocations: 0 / 0.5407 GB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.419, allocations: 4 kB / 0.5407 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.419, allocations: 3.984 kB / 0.5407 GB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.419, allocations: 0 / 0.5407 GB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.4192, allocations: 234.2 kB / 0.5409 GB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.4193, allocations: 96.02 kB / 0.541 GB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.4193, allocations: 4 kB / 0.541 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.484e-05/0.4194, allocations: 0 / 0.541 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.4194, allocations: 18.94 kB / 0.541 GB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.4195, allocations: 4 kB / 0.5411 GB, free: 9.301 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.574e-05/0.4196, allocations: 115.7 kB / 0.5412 GB, free: 9.199 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4196, allocations: 4 kB / 0.5412 GB, free: 9.195 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002729/0.4198, allocations: 43.2 kB / 0.5412 GB, free: 9.156 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.0006282/0.4205, allocations: 270.6 kB / 0.5415 GB, free: 8.949 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.4207, allocations: 88.31 kB / 0.5415 GB, free: 8.883 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4207, allocations: 4.75 kB / 0.5416 GB, free: 8.879 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.938e-05/0.4207, allocations: 30.56 kB / 0.5416 GB, free: 8.859 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.4209, allocations: 14.86 kB / 0.5416 GB, free: 8.852 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000862/0.4218, allocations: 328.1 kB / 0.5419 GB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.4221, allocations: 0.739 MB / 0.5426 GB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.215e-05/0.4222, allocations: 25.06 kB / 0.5427 GB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.4222, allocations: 15.44 kB / 0.5427 GB, free: 7.746 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4222, allocations: 4 kB / 0.5427 GB, free: 7.742 MB / 362.7 MB Notification: Performance of Templates: time 0.003841/0.426, allocations: 1.416 MB / 0.5441 GB, free: 6.34 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)