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.001639/0.001639, allocations: 180.7 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.528/1.528, allocations: 223.2 MB / 239.7 MB, free: 56 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009178/0.0009177, allocations: 96.7 kB / 290.9 MB, free: 4.574 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.05466/0.05466, allocations: 12.05 MB / 354 MB, free: 1.281 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.000356, allocations: 8 kB / 418 MB, free: 1.289 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2877, allocations: 53.36 MB / 471.3 MB, free: 65.07 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1092/0.397, allocations: 83.11 MB / 0.5415 GB, free: 13.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.3973, allocations: 71.97 kB / 0.5415 GB, free: 13.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01038/0.4077, allocations: 3.423 MB / 0.5449 GB, free: 10.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4077, allocations: 0 / 0.5449 GB, free: 10.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.792e-05/0.4078, allocations: 8 kB / 0.5449 GB, free: 10.34 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.0006492/0.4084, allocations: 455.5 kB / 0.5453 GB, free: 9.848 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.4085, allocations: 8.031 kB / 0.5453 GB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.212e-05/0.4086, allocations: 50.55 kB / 0.5454 GB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.053e-05/0.4087, allocations: 23.72 kB / 0.5454 GB, free: 9.758 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.409, allocations: 251.5 kB / 0.5456 GB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.4091, allocations: 12.34 kB / 0.5456 GB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.82e-05/0.4091, allocations: 15.95 kB / 0.5457 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003632/0.4095, allocations: 193 kB / 0.5458 GB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.4095, allocations: 0 / 0.5458 GB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.4095, allocations: 7.984 kB / 0.5458 GB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.4095, allocations: 4 kB / 0.5458 GB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.4097, allocations: 87.89 kB / 0.5459 GB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000865/0.4106, allocations: 0.5667 MB / 0.5465 GB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.4107, allocations: 72.59 kB / 0.5466 GB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.4108, allocations: 4 kB / 0.5466 GB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.4109, allocations: 85.17 kB / 0.5466 GB, free: 8.328 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.4109, allocations: 0 / 0.5466 GB, free: 8.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003573/0.4113, allocations: 218.5 kB / 0.5468 GB, free: 8.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.4114, allocations: 81.11 kB / 0.5469 GB, free: 7.992 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.4115, allocations: 166.5 kB / 0.5471 GB, free: 7.824 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.018e-05/0.4116, allocations: 37.69 kB / 0.5471 GB, free: 7.781 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.577e-05/0.4117, allocations: 144.2 kB / 0.5473 GB, free: 7.637 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.4117, allocations: 23.72 kB / 0.5473 GB, free: 7.613 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-06/0.4117, allocations: 288 / 0.5473 GB, free: 7.613 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.4119, allocations: 330.8 kB / 0.5476 GB, free: 7.281 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.465e-05/0.412, allocations: 23.98 kB / 0.5476 GB, free: 7.258 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.4121, allocations: 115.9 kB / 0.5477 GB, free: 7.102 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.698e-05/0.4122, allocations: 49.03 kB / 0.5478 GB, free: 7.055 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4122, allocations: 4 kB / 0.5478 GB, free: 7.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00029/0.4125, allocations: 185.4 kB / 0.548 GB, free: 6.863 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4125, allocations: 7.938 kB / 0.548 GB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4125, allocations: 4 kB / 0.548 GB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.4126, allocations: 4 kB / 0.548 GB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.694e-05/0.4127, allocations: 23.98 kB / 0.548 GB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.4127, allocations: 7.938 kB / 0.548 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.575e-05/0.4128, allocations: 7.938 kB / 0.548 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.4128, allocations: 12 kB / 0.548 GB, free: 6.797 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.0002851/0.4131, allocations: 201.5 kB / 0.5482 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.4131, allocations: 11.91 kB / 0.5482 GB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.358e-05/0.4132, allocations: 13.39 kB / 0.5482 GB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.4132, allocations: 4 kB / 0.5482 GB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4132, allocations: 0 / 0.5482 GB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.4132, allocations: 0 / 0.5482 GB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004981/0.4137, allocations: 434.3 kB / 0.5487 GB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4137, allocations: 3.984 kB / 0.5487 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.051e-05/0.4137, allocations: 0 / 0.5487 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4137, allocations: 0 / 0.5487 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.4137, allocations: 8 kB / 0.5487 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.4138, allocations: 0 / 0.5487 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4138, allocations: 0 / 0.5487 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.414, allocations: 237.8 kB / 0.5489 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.4141, allocations: 85.02 kB / 0.549 GB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.49e-05/0.4141, allocations: 4 kB / 0.549 GB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.652e-05/0.4142, allocations: 7.984 kB / 0.549 GB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.078e-05/0.4142, allocations: 7.953 kB / 0.549 GB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.4143, allocations: 15.92 kB / 0.549 GB, free: 5.676 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001002/0.4144, allocations: 119.2 kB / 0.5491 GB, free: 5.559 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4144, allocations: 0 / 0.5491 GB, free: 5.559 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003346/0.4147, allocations: 43.84 kB / 0.5492 GB, free: 5.516 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.001104/0.4158, allocations: 0.9976 MB / 0.5501 GB, free: 4.555 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002172/0.4161, allocations: 91.84 kB / 0.5502 GB, free: 4.465 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4161, allocations: 0 / 0.5502 GB, free: 4.465 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.54e-05/0.4162, allocations: 39.91 kB / 0.5503 GB, free: 4.426 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.4164, allocations: 15.95 kB / 0.5503 GB, free: 4.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.4189, allocations: 2.583 MB / 0.5528 GB, free: 1.715 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.4192, allocations: 0.7399 MB / 0.5535 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.724e-05/0.4193, allocations: 21.41 kB / 0.5535 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.815e-05/0.4194, allocations: 55.36 kB / 0.5536 GB, free: 0.875 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4194, allocations: 0 / 0.5536 GB, free: 0.875 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2544/0.6738, allocations: 2.984 MB / 0.5565 GB, free: 89.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.674, allocations: 278.9 kB / 0.5568 GB, free: 89.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.441, allocations: 5.188 kB / 0.5568 GB, free: 89.01 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)