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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 181 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 2.676/2.676, allocations: 221.4 MB / 235.1 MB, free: 14.38 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.001317/0.001317, allocations: 98.81 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.09671/0.09671, allocations: 11.89 MB / 348.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.978e-05/5.996e-05, allocations: 4 kB / 410.2 MB, free: 58.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.199, allocations: 53.36 MB / 463.6 MB, free: 4.816 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7906/0.9896, allocations: 83.05 MB / 0.5338 GB, free: 240 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.99, allocations: 74.09 kB / 0.5339 GB, free: 204 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01234/1.002, allocations: 3.39 MB / 0.5372 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.517e-06/1.002, allocations: 0 / 0.5372 GB, free: 13.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.941e-05/1.003, allocations: 11.94 kB / 0.5372 GB, free: 13.31 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.0007777/1.003, allocations: 427.4 kB / 0.5376 GB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.477e-05/1.003, allocations: 12.03 kB / 0.5376 GB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.529e-05/1.003, allocations: 49.98 kB / 0.5377 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.658e-05/1.004, allocations: 27.72 kB / 0.5377 GB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005226/1.004, allocations: 253.4 kB / 0.5379 GB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/1.004, allocations: 16.27 kB / 0.5379 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/1.004, allocations: 15.64 kB / 0.538 GB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005074/1.005, allocations: 186.8 kB / 0.5381 GB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/1.005, allocations: 3.938 kB / 0.5381 GB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/1.005, allocations: 3.812 kB / 0.5381 GB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/1.005, allocations: 4 kB / 0.5381 GB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002077/1.005, allocations: 82.8 kB / 0.5382 GB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/1.006, allocations: 0.5676 MB / 0.5388 GB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/1.006, allocations: 64.55 kB / 0.5388 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.496e-05/1.007, allocations: 33.16 kB / 0.5389 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-05/1.007, allocations: 0 / 0.5389 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/1.007, allocations: 100.3 kB / 0.539 GB, free: 11.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/1.007, allocations: 0 / 0.539 GB, free: 11.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003796/1.007, allocations: 108.9 kB / 0.5391 GB, free: 11.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.57e-05/1.007, allocations: 84.86 kB / 0.5392 GB, free: 11.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/1.008, allocations: 162.2 kB / 0.5393 GB, free: 11.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.948e-05/1.008, allocations: 29.52 kB / 0.5393 GB, free: 11.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/1.008, allocations: 147.7 kB / 0.5395 GB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/1.008, allocations: 27.36 kB / 0.5395 GB, free: 11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-06/1.008, allocations: 0 / 0.5395 GB, free: 11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002212/1.008, allocations: 330.5 kB / 0.5398 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.272e-05/1.008, allocations: 23.69 kB / 0.5398 GB, free: 10.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/1.008, allocations: 111 kB / 0.5399 GB, free: 10.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/1.008, allocations: 49.67 kB / 0.54 GB, free: 10.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/1.008, allocations: 0 / 0.54 GB, free: 10.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004071/1.009, allocations: 190.6 kB / 0.5402 GB, free: 10.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/1.009, allocations: 4 kB / 0.5402 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/1.009, allocations: 7.984 kB / 0.5402 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/1.009, allocations: 4 kB / 0.5402 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/1.009, allocations: 26.86 kB / 0.5402 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/1.009, allocations: 7.938 kB / 0.5402 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/1.009, allocations: 11.16 kB / 0.5402 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/1.009, allocations: 8 kB / 0.5402 GB, free: 10.26 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.0002937/1.01, allocations: 154.2 kB / 0.5404 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/1.01, allocations: 15.81 kB / 0.5404 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.789e-05/1.01, allocations: 16.77 kB / 0.5404 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/1.01, allocations: 0 / 0.5404 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/1.01, allocations: 0 / 0.5404 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/1.01, allocations: 4 kB / 0.5404 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007914/1.011, allocations: 432.3 kB / 0.5408 GB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/1.011, allocations: 0 / 0.5408 GB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.391e-05/1.011, allocations: 4 kB / 0.5408 GB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/1.011, allocations: 0 / 0.5408 GB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/1.011, allocations: 0 / 0.5408 GB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/1.011, allocations: 4 kB / 0.5408 GB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.011, allocations: 0 / 0.5408 GB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004126/1.011, allocations: 235.5 kB / 0.5411 GB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.786e-05/1.011, allocations: 91.98 kB / 0.5412 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/1.011, allocations: 3.984 kB / 0.5412 GB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/1.011, allocations: 4 kB / 0.5412 GB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/1.011, allocations: 3.953 kB / 0.5412 GB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.165e-05/1.011, allocations: 11.67 kB / 0.5412 GB, free: 9.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001665/1.012, allocations: 118.3 kB / 0.5413 GB, free: 9.176 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.012, allocations: 4 kB / 0.5413 GB, free: 9.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004971/1.012, allocations: 50.28 kB / 0.5413 GB, free: 9.129 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.001921/1.014, allocations: 0.9845 MB / 0.5423 GB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003344/1.014, allocations: 98.42 kB / 0.5424 GB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/1.014, allocations: 0 / 0.5424 GB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.624e-05/1.015, allocations: 30.55 kB / 0.5424 GB, free: 8.102 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/1.015, allocations: 17.77 kB / 0.5424 GB, free: 8.094 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/1.017, allocations: 409.6 kB / 0.5428 GB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/1.017, allocations: 0.7396 MB / 0.5436 GB, free: 6.945 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.603e-05/1.018, allocations: 17.2 kB / 0.5436 GB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/1.018, allocations: 52.17 kB / 0.5436 GB, free: 6.906 MB / 362.7 MB Notification: Performance of SimCode: time 1.432e-06/1.018, allocations: 0 / 0.5436 GB, free: 6.906 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/1.045, allocations: 3.026 MB / 0.5466 GB, free: 4.027 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00041/1.045, allocations: 250 kB / 0.5468 GB, free: 3.691 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.928/3.974, allocations: 0 / 0.5468 GB, free: 3.691 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe 2>&1)