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.001508/0.001508, 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.411/1.411, allocations: 221.5 MB / 230 MB, free: 7.539 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.0008925/0.0008926, allocations: 96.77 kB / 280.9 MB, free: 5.289 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.05161/0.05161, allocations: 11.91 MB / 343.6 MB, free: 3.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.008e-05/2.001e-05, allocations: 2.688 kB / 403.2 MB, free: 45.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 53.36 MB / 456.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4157/0.5333, allocations: 82.39 MB / 0.5263 GB, free: 16.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.5336, allocations: 72.09 kB / 0.5264 GB, free: 16.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00961/0.5432, allocations: 3.371 MB / 0.5297 GB, free: 16.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5433, allocations: 5.156 kB / 0.5297 GB, free: 16.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.5433, allocations: 11.28 kB / 0.5297 GB, free: 16.16 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.000437/0.5438, allocations: 435.8 kB / 0.5301 GB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.5438, allocations: 9.719 kB / 0.5301 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.5439, allocations: 17.45 kB / 0.5302 GB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.5441, allocations: 257.5 kB / 0.5304 GB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.5442, allocations: 5.344 kB / 0.5304 GB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.5442, allocations: 12.8 kB / 0.5304 GB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001553/0.5444, allocations: 73.33 kB / 0.5305 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.5446, allocations: 178.6 kB / 0.5307 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.5446, allocations: 0 / 0.5307 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.5447, allocations: 7.406 kB / 0.5307 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.5447, allocations: 2.812 kB / 0.5307 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006285/0.5453, allocations: 0.5237 MB / 0.5312 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.921e-05/0.5454, allocations: 59.16 kB / 0.5312 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.1e-05/0.5455, allocations: 37.33 kB / 0.5313 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.034e-05/0.5455, allocations: 1.125 kB / 0.5313 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001166/0.5456, allocations: 92.75 kB / 0.5314 GB, free: 14.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.5456, allocations: 0 / 0.5314 GB, free: 14.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002279/0.5459, allocations: 103.4 kB / 0.5315 GB, free: 14.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.5459, allocations: 88.89 kB / 0.5315 GB, free: 14.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.5461, allocations: 154 kB / 0.5317 GB, free: 14.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.5461, allocations: 28.05 kB / 0.5317 GB, free: 14.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.433e-05/0.5462, allocations: 145.5 kB / 0.5319 GB, free: 14.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.5462, allocations: 24.33 kB / 0.5319 GB, free: 14.58 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-06/0.5462, allocations: 0 / 0.5319 GB, free: 14.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.822e-05/0.5463, allocations: 331 kB / 0.5322 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.978e-05/0.5463, allocations: 19.06 kB / 0.5322 GB, free: 14.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.255e-05/0.5464, allocations: 109.3 kB / 0.5323 GB, free: 14.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.341e-05/0.5465, allocations: 44.91 kB / 0.5324 GB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5465, allocations: 1.031 kB / 0.5324 GB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002595/0.5468, allocations: 167 kB / 0.5325 GB, free: 14.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.5468, allocations: 6.031 kB / 0.5325 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.5468, allocations: 7.812 kB / 0.5325 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.5469, allocations: 3.938 kB / 0.5325 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.631e-05/0.547, allocations: 21.05 kB / 0.5326 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.547, allocations: 5.438 kB / 0.5326 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.117e-05/0.547, allocations: 4.25 kB / 0.5326 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.5471, allocations: 12.44 kB / 0.5326 GB, free: 14.07 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.00016/0.5472, allocations: 145.1 kB / 0.5327 GB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001586/0.5474, allocations: 115.5 kB / 0.5328 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.5474, allocations: 13.38 kB / 0.5328 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.733e-05/0.5475, allocations: 19.08 kB / 0.5329 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.5475, allocations: 2.188 kB / 0.5329 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.5475, allocations: 3.703 kB / 0.5329 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.5475, allocations: 1.094 kB / 0.5329 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.5479, allocations: 381 kB / 0.5332 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5479, allocations: 0 / 0.5332 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.458e-06/0.5479, allocations: 1.562 kB / 0.5332 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.5479, allocations: 1.125 kB / 0.5332 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.5479, allocations: 11.7 kB / 0.5332 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.5479, allocations: 3.938 kB / 0.5332 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.5479, allocations: 1.125 kB / 0.5332 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.5481, allocations: 225.7 kB / 0.5335 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006107/0.5488, allocations: 86.92 kB / 0.5335 GB, free: 29.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.5488, allocations: 1.906 kB / 0.5335 GB, free: 29.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.382e-05/0.5489, allocations: 9.062 kB / 0.5336 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.57e-05/0.5489, allocations: 12.48 kB / 0.5336 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.5489, allocations: 8.531 kB / 0.5336 GB, free: 29.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.378e-05/0.549, allocations: 109.9 kB / 0.5337 GB, free: 29.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.549, allocations: 0 / 0.5337 GB, free: 29.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004106/0.5495, allocations: 45.19 kB / 0.5337 GB, free: 29.23 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) * 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.001132/0.5506, allocations: 0.9769 MB / 0.5347 GB, free: 28.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002092/0.5508, allocations: 85.59 kB / 0.5348 GB, free: 28.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5508, allocations: 1.312 kB / 0.5348 GB, free: 28.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.362e-05/0.5509, allocations: 34.55 kB / 0.5348 GB, free: 28.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.5511, allocations: 16.27 kB / 0.5348 GB, free: 28.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.5522, allocations: 383.8 kB / 0.5352 GB, free: 28.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.5526, allocations: 0.7426 MB / 0.5359 GB, free: 27.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.409e-05/0.5526, allocations: 17.23 kB / 0.5359 GB, free: 27.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.571e-05/0.5527, allocations: 51.11 kB / 0.536 GB, free: 27.51 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5527, allocations: 0 / 0.536 GB, free: 27.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.5767, allocations: 2.677 MB / 0.5386 GB, free: 27.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002323/0.5771, allocations: 223.4 kB / 0.5388 GB, free: 26.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/2.191, allocations: 0.5 kB / 0.5388 GB, free: 26.96 MB / 378.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)