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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 100.3 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008948/0.0008948, allocations: 180.9 kB / 16.62 MB, free: 6.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.2 MB / 240.6 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1849/0.1849, allocations: 12.04 MB / 303.7 MB, free: 1.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004759/0.000476, allocations: 15.98 kB / 367.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1167, allocations: 53.34 MB / 421 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.003595/0.1203, allocations: 2.35 MB / 423.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.1216, allocations: 0.5965 MB / 424 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002094/0.1218, allocations: 7.938 kB / 424 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002826/0.1221, allocations: 51.69 kB / 424 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1223, allocations: 35.81 kB / 424.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.1228, allocations: 111.8 kB / 424.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.123, allocations: 116.2 kB / 424.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.1233, allocations: 84.2 kB / 424.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.1234, allocations: 51.78 kB / 424.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.1235, allocations: 63.62 kB / 424.5 MB, free: 484 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.1236, allocations: 7.938 kB / 424.5 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.1237, allocations: 20 kB / 424.5 MB, free: 456 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.928e-05/0.1237, allocations: 31.91 kB / 424.5 MB, free: 424 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.062e-05/0.1238, allocations: 57.58 kB / 424.6 MB, free: 360 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.1241, allocations: 163.8 kB / 424.7 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1241, allocations: 0 / 424.7 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1241, allocations: 0 / 424.7 MB, free: 196 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.1241, allocations: 0 / 424.7 MB, free: 196 kB / 350.1 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.2321/0.3562, allocations: 446.1 kB / 425.2 MB, free: 39.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.3562, allocations: 11.5 kB / 425.2 MB, free: 39.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.3564, allocations: 51.73 kB / 425.2 MB, free: 39.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6e-05/0.3564, allocations: 23.09 kB / 425.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.3567, allocations: 230.5 kB / 425.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.3567, allocations: 14.91 kB / 425.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.3568, allocations: 15.09 kB / 425.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.3571, allocations: 189 kB / 425.7 MB, free: 39.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3572, allocations: 1.281 kB / 425.7 MB, free: 39.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.3572, allocations: 8.625 kB / 425.7 MB, free: 39.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.3572, allocations: 3.781 kB / 425.7 MB, free: 39.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.3574, allocations: 86.59 kB / 425.8 MB, free: 39.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008024/0.3582, allocations: 0.5765 MB / 426.4 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.922e-05/0.3583, allocations: 67.69 kB / 426.4 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.3583, allocations: 4.094 kB / 426.4 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.3585, allocations: 94.34 kB / 426.5 MB, free: 38.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.3585, allocations: 4.25 kB / 426.5 MB, free: 38.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003073/0.3588, allocations: 214.4 kB / 426.8 MB, free: 38.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.3589, allocations: 83.45 kB / 426.8 MB, free: 38.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.359, allocations: 178.9 kB / 427 MB, free: 38.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.3591, allocations: 31.11 kB / 427 MB, free: 38.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.25e-05/0.3592, allocations: 143 kB / 427.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.3592, allocations: 29.03 kB / 427.2 MB, free: 38.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.3592, allocations: 7.281 kB / 427.2 MB, free: 38.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.587e-05/0.3593, allocations: 326.9 kB / 427.5 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.804e-05/0.3593, allocations: 24.78 kB / 427.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.534e-05/0.3594, allocations: 116.2 kB / 427.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.815e-05/0.3595, allocations: 51.92 kB / 427.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3595, allocations: 0.9062 kB / 427.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002304/0.3598, allocations: 178.2 kB / 427.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3598, allocations: 7.078 kB / 427.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3598, allocations: 7.312 kB / 427.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.3598, allocations: 6.5 kB / 427.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.326e-05/0.3599, allocations: 19.48 kB / 427.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.3599, allocations: 7.984 kB / 427.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.36, allocations: 16.91 kB / 428 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.36, allocations: 8.281 kB / 428 MB, free: 37.78 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: realtimeSynchronize.rtSync_Sampled.simTime:DISCRETE(flow=false 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(flow=false 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(flow=false unit = "s" fixed = true ) "Wall clock time that is left before real-time deadline is reached" type: Real realtimeSynchronize.rtSync_Sampled.wallClockTime:DISCRETE(flow=false 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,realtimeSynchronize.trigger,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.0002254/0.3603, allocations: 187.1 kB / 428.2 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.3603, allocations: 8.875 kB / 428.2 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/0.3603, allocations: 16.94 kB / 428.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3604, allocations: 0 / 428.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3604, allocations: 0 / 428.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.3604, allocations: 9.078 kB / 428.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004002/0.3608, allocations: 439 kB / 428.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3608, allocations: 4 kB / 428.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.15e-05/0.3608, allocations: 4.156 kB / 428.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3608, allocations: 3.938 kB / 428.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.3608, allocations: 2.844 kB / 428.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3608, allocations: 3.281 kB / 428.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3608, allocations: 0 / 428.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001801/0.361, allocations: 231.4 kB / 428.9 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.3611, allocations: 86.42 kB / 428.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.3611, allocations: 3.469 kB / 428.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.676e-05/0.3612, allocations: 4.312 kB / 429 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.3612, allocations: 7.734 kB / 429 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.3612, allocations: 9.891 kB / 429 MB, free: 37.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.242e-05/0.3613, allocations: 117.5 kB / 429.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.294e-06/0.3613, allocations: 0 / 429.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.3617, allocations: 49.98 kB / 429.1 MB, free: 36.96 MB / 350.1 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,realtimeSynchronize.trigger,$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.001028/0.3627, allocations: 0.9927 MB / 430.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002373/0.363, allocations: 100 kB / 430.2 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.363, allocations: 2.406 kB / 430.2 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.568e-05/0.363, allocations: 32.3 kB / 430.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.3633, allocations: 16.45 kB / 430.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.3647, allocations: 2.449 MB / 432.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.365, allocations: 0.7508 MB / 433.5 MB, free: 33.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.487e-05/0.3651, allocations: 19.48 kB / 433.5 MB, free: 33.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.787e-05/0.3652, allocations: 53.89 kB / 433.5 MB, free: 33.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3652, allocations: 0 / 433.5 MB, free: 33.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01609/0.3813, allocations: 2.987 MB / 436.5 MB, free: 32.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.3815, allocations: 281.3 kB / 436.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/2.177, allocations: 0 / 436.8 MB, free: 32.48 MB / 350.1 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)