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.001576/0.001576, allocations: 106.5 kB / 16.31 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 191.2 kB / 17.24 MB, free: 5.922 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.402/1.402, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05778/0.05778, allocations: 12.05 MB / 303.1 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 366.6 MB, free: 3.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.226, allocations: 52.33 MB / 418.9 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.00385/0.2299, allocations: 2.74 MB / 421.6 MB, free: 18.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009221/0.2308, allocations: 0.6575 MB / 422.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.231, allocations: 7.938 kB / 422.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.2312, allocations: 63.5 kB / 422.4 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.175e-05/0.2313, allocations: 27.78 kB / 422.4 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003106/0.2317, allocations: 115.7 kB / 422.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.2318, allocations: 188 kB / 422.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.232, allocations: 107 kB / 422.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.201e-05/0.2321, allocations: 79.64 kB / 422.9 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.2322, allocations: 83.61 kB / 423 MB, free: 17.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.2323, allocations: 16 kB / 423 MB, free: 17.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.721e-05/0.2324, allocations: 32 kB / 423 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.806e-05/0.2324, allocations: 51.83 kB / 423 MB, free: 16.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.996e-05/0.2325, allocations: 83.53 kB / 423.1 MB, free: 16.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.2328, allocations: 225.5 kB / 423.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2328, allocations: 0 / 423.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2328, allocations: 4 kB / 423.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2328, allocations: 0 / 423.4 MB, free: 16.62 MB / 302.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.0005017/0.2333, allocations: 474.7 kB / 423.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2334, allocations: 12.03 kB / 423.8 MB, free: 16.1 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.2334, allocations: 50.73 kB / 423.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.473e-05/0.2335, allocations: 24.73 kB / 423.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.2337, allocations: 236.6 kB / 424.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.2337, allocations: 12.38 kB / 424.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.2337, allocations: 16.38 kB / 424.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.234, allocations: 201.1 kB / 424.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.234, allocations: 0 / 424.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.234, allocations: 4 kB / 424.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.234, allocations: 4 kB / 424.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.2342, allocations: 91.81 kB / 424.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005654/0.2347, allocations: 0.5743 MB / 425 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.325e-05/0.2348, allocations: 69.2 kB / 425.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.2349, allocations: 33.75 kB / 425.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.2349, allocations: 7.938 kB / 425.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001511/0.2351, allocations: 89.08 kB / 425.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.2351, allocations: 8 kB / 425.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002466/0.2353, allocations: 133.5 kB / 425.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.2354, allocations: 93.03 kB / 425.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.2355, allocations: 174.2 kB / 425.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.2355, allocations: 33.7 kB / 425.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.2356, allocations: 140.1 kB / 425.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.2356, allocations: 31.73 kB / 425.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.822e-05/0.2357, allocations: 45.73 kB / 425.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.033e-05/0.2357, allocations: 326.8 kB / 426.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.02e-05/0.2358, allocations: 20 kB / 426.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.477e-05/0.2358, allocations: 122.4 kB / 426.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.236, allocations: 190.9 kB / 426.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.236, allocations: 0 / 426.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002063/0.2363, allocations: 185.2 kB / 426.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.2363, allocations: 10.34 kB / 426.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.2363, allocations: 4.375 kB / 426.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.2363, allocations: 8 kB / 426.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.329e-05/0.2364, allocations: 23.81 kB / 426.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.2364, allocations: 7.984 kB / 426.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.275e-05/0.2365, allocations: 19.84 kB / 426.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.2365, allocations: 8 kB / 426.8 MB, free: 12.84 MB / 302.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,pre1.u,$whenCondition2,realtimeSynchronize.trigger,$PRE.pre1.u,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.2366, allocations: 185.8 kB / 427 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.2367, allocations: 11.81 kB / 427 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.828e-05/0.2367, allocations: 17.39 kB / 427 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2367, allocations: 7.938 kB / 427 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2367, allocations: 0 / 427 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2367, allocations: 0 / 427 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003089/0.237, allocations: 430.4 kB / 427.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2371, allocations: 4 kB / 427.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.258e-06/0.2371, allocations: 7.875 kB / 427.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2371, allocations: 0 / 427.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.2371, allocations: 4 kB / 427.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2371, allocations: 0 / 427.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2371, allocations: 0 / 427.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.2373, allocations: 212.2 kB / 427.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.787e-05/0.2373, allocations: 96.86 kB / 427.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.2373, allocations: 3.984 kB / 427.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.666e-05/0.2374, allocations: 4 kB / 427.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.992e-05/0.2374, allocations: 4 kB / 427.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.2374, allocations: 12.03 kB / 427.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.045e-05/0.2375, allocations: 124.2 kB / 427.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2375, allocations: 4 kB / 427.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000305/0.2378, allocations: 47.78 kB / 427.9 MB, free: 11.59 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007436/0.2386, allocations: 0.9185 MB / 428.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001894/0.2388, allocations: 112.2 kB / 429 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2388, allocations: 4.188 kB / 429 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.55e-05/0.2389, allocations: 27.98 kB / 429 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.2391, allocations: 18.27 kB / 429 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.2408, allocations: 1.947 MB / 431 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.241, allocations: 0.7358 MB / 431.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.228e-05/0.241, allocations: 17.41 kB / 431.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.782e-05/0.2411, allocations: 55.42 kB / 431.8 MB, free: 7.617 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2411, allocations: 0 / 431.8 MB, free: 7.617 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02007/0.2612, allocations: 3.392 MB / 435.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.483/7.744, allocations: 23.56 kB / 435.2 MB, free: 4.316 MB / 302.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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize.pipe 2>&1)