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.001385/0.001385, allocations: 100.6 kB / 16.45 MB, free: 6.441 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.00125/0.001251, allocations: 188.9 kB / 17.38 MB, free: 5.691 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.476/1.476, allocations: 222.9 MB / 241.1 MB, free: 15.09 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.06422/0.06422, allocations: 12.06 MB / 303.3 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 64.45 kB / 419.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1213, allocations: 52.32 MB / 471.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.005661/0.127, allocations: 2.738 MB / 474.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.1285, allocations: 0.6621 MB / 475.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.1286, allocations: 7.938 kB / 475.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003136/0.129, allocations: 63.52 kB / 475.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.1291, allocations: 23.78 kB / 475.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.1295, allocations: 123 kB / 475.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.1298, allocations: 184 kB / 475.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.13, allocations: 116 kB / 475.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.1302, allocations: 75.64 kB / 475.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.1303, allocations: 87.61 kB / 476 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.1304, allocations: 12 kB / 476 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.579e-05/0.1305, allocations: 36 kB / 476 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.622e-05/0.1306, allocations: 55.83 kB / 476.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.1307, allocations: 83.53 kB / 476.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.131, allocations: 227.3 kB / 476.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1311, allocations: 0 / 476.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1311, allocations: 0 / 476.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.1311, allocations: 0 / 476.4 MB, free: 8.859 MB / 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.0008906/0.132, allocations: 0.4903 MB / 476.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.132, allocations: 8.031 kB / 476.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.491e-05/0.1321, allocations: 50.73 kB / 476.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.043e-05/0.1322, allocations: 24.8 kB / 476.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.1325, allocations: 247.9 kB / 477.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.1326, allocations: 12.38 kB / 477.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.1326, allocations: 12.38 kB / 477.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004396/0.1331, allocations: 201.2 kB / 477.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1331, allocations: 0 / 477.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.1331, allocations: 8 kB / 477.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.1332, allocations: 4 kB / 477.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.1334, allocations: 91.8 kB / 477.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008925/0.1343, allocations: 0.5705 MB / 478.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.1345, allocations: 65.2 kB / 478.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.228e-05/0.1346, allocations: 29.78 kB / 478.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.1346, allocations: 7.922 kB / 478.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000242/0.1348, allocations: 93.09 kB / 478.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.794e-06/0.1349, allocations: 0 / 478.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003312/0.1352, allocations: 137.5 kB / 478.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.1353, allocations: 85.05 kB / 478.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.1355, allocations: 178.8 kB / 478.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.1356, allocations: 29.7 kB / 478.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.1357, allocations: 148.4 kB / 478.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.1357, allocations: 27.84 kB / 478.9 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.1358, allocations: 45.83 kB / 478.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003245/0.1362, allocations: 322.8 kB / 479.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.435e-05/0.1362, allocations: 23.98 kB / 479.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.1364, allocations: 112.6 kB / 479.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.1367, allocations: 202.8 kB / 479.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1367, allocations: 0 / 479.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002953/0.137, allocations: 185.3 kB / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.137, allocations: 12.31 kB / 479.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1371, allocations: 4 kB / 479.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.088e-05/0.1371, allocations: 4 kB / 479.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.341e-05/0.1372, allocations: 27.86 kB / 479.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.1372, allocations: 8.062 kB / 479.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.301e-05/0.1373, allocations: 11.95 kB / 479.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.1373, allocations: 8 kB / 479.8 MB, free: 5.062 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,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.0002538/0.1376, allocations: 184.5 kB / 480 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.1376, allocations: 15.91 kB / 480 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/0.1376, allocations: 17.41 kB / 480 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.1377, allocations: 3.938 kB / 480 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.1377, allocations: 0 / 480 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.1377, allocations: 7.984 kB / 480 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005391/0.1382, allocations: 422.4 kB / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1382, allocations: 0 / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.575e-05/0.1383, allocations: 19.88 kB / 480.5 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1383, allocations: 0 / 480.5 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.1383, allocations: 0 / 480.5 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.1383, allocations: 7.984 kB / 480.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1383, allocations: 0 / 480.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.1385, allocations: 216.2 kB / 480.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.1386, allocations: 92.98 kB / 480.8 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.1386, allocations: 7.984 kB / 480.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.632e-05/0.1387, allocations: 0 / 480.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.586e-05/0.1388, allocations: 11.98 kB / 480.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.1388, allocations: 4 kB / 480.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1389, allocations: 123.2 kB / 480.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1389, allocations: 0 / 480.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.1392, allocations: 47.81 kB / 481 MB, free: 3.809 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 (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.001383/0.1406, allocations: 0.9145 MB / 481.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002296/0.1409, allocations: 96.47 kB / 482 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1409, allocations: 0 / 482 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.535e-05/0.1409, allocations: 36.05 kB / 482 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.1413, allocations: 19.92 kB / 482 MB, free: 2.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/0.1437, allocations: 1.981 MB / 484 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005645/0.1443, allocations: 0.7319 MB / 484.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.985e-05/0.1443, allocations: 21.41 kB / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-05/0.1444, allocations: 51.42 kB / 484.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of SimCode: time 2.254e-06/0.1444, allocations: 0 / 484.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.1709, allocations: 3.521 MB / 488.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.167/8.338, allocations: 15.52 kB / 488.3 MB, free: 12.38 MB / 366.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)