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.001132/0.001132, allocations: 102.6 kB / 16.45 MB, free: 6.438 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.001165/0.001165, allocations: 186.4 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.358/1.358, allocations: 222.9 MB / 241.1 MB, free: 15.07 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.05763/0.05763, allocations: 12.04 MB / 303.3 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 67.89 kB / 419.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1057, allocations: 52.32 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize): time 0.004081/0.1098, allocations: 2.742 MB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.111, allocations: 0.6621 MB / 475.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1111, allocations: 7.938 kB / 475.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.1114, allocations: 63.5 kB / 475.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.1116, allocations: 23.8 kB / 475.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.1119, allocations: 123.3 kB / 475.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.1122, allocations: 183.9 kB / 475.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.1124, allocations: 112 kB / 475.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.71e-05/0.1125, allocations: 83.62 kB / 475.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.1126, allocations: 79.62 kB / 476 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.504e-05/0.1126, allocations: 16 kB / 476 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.169e-05/0.1127, allocations: 43.97 kB / 476 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.011e-05/0.1128, allocations: 51.84 kB / 476.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.1129, allocations: 79.48 kB / 476.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.1132, allocations: 231.2 kB / 476.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.1132, allocations: 0 / 476.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1133, allocations: 0 / 476.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1133, allocations: 4 kB / 476.4 MB, free: 8.824 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.0006435/0.1139, allocations: 498.1 kB / 476.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.114, allocations: 12.03 kB / 476.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.213e-05/0.114, allocations: 46.73 kB / 476.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.211e-05/0.1141, allocations: 24.8 kB / 476.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.1144, allocations: 247.9 kB / 477.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.1144, allocations: 16.31 kB / 477.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.1144, allocations: 16.38 kB / 477.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/0.1147, allocations: 189.3 kB / 477.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1148, allocations: 4 kB / 477.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.1148, allocations: 7.984 kB / 477.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1148, allocations: 4 kB / 477.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.1149, allocations: 95.75 kB / 477.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007958/0.1158, allocations: 0.5589 MB / 478.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.1159, allocations: 69.2 kB / 478.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.169e-05/0.1159, allocations: 29.72 kB / 478.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.116, allocations: 8.062 kB / 478.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.1162, allocations: 93.09 kB / 478.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.1162, allocations: 0 / 478.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000298/0.1165, allocations: 137.5 kB / 478.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.1165, allocations: 92.98 kB / 478.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.1167, allocations: 174.8 kB / 478.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1168, allocations: 33.7 kB / 478.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.1169, allocations: 144.3 kB / 478.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.1169, allocations: 27.83 kB / 478.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.953e-05/0.1169, allocations: 41.7 kB / 478.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1171, allocations: 327 kB / 479.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.506e-05/0.1171, allocations: 27.98 kB / 479.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.1173, allocations: 108 kB / 479.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.1175, allocations: 206.8 kB / 479.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1175, allocations: 288 / 479.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002627/0.1178, allocations: 181.3 kB / 479.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1178, allocations: 7.938 kB / 479.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.1179, allocations: 7.938 kB / 479.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.1179, allocations: 4.375 kB / 479.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.327e-05/0.118, allocations: 31.86 kB / 479.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.118, allocations: 4 kB / 479.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.568e-05/0.1181, allocations: 11.95 kB / 479.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.1181, allocations: 8 kB / 479.8 MB, free: 5.031 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.0002172/0.1183, allocations: 188.5 kB / 480 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.1183, allocations: 15.91 kB / 480 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.1184, allocations: 13.39 kB / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1184, allocations: 7.938 kB / 480 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1184, allocations: 0 / 480 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1184, allocations: 0 / 480 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004509/0.1188, allocations: 426.4 kB / 480.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1189, allocations: 0 / 480.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.275e-05/0.1189, allocations: 7.875 kB / 480.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1189, allocations: 11.98 kB / 480.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.1189, allocations: 0 / 480.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1189, allocations: 0 / 480.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1189, allocations: 0 / 480.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002238/0.1191, allocations: 216.2 kB / 480.7 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.504e-05/0.1192, allocations: 92.94 kB / 480.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.1192, allocations: 4 kB / 480.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.594e-05/0.1193, allocations: 8 kB / 480.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.211e-05/0.1193, allocations: 7.984 kB / 480.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.1194, allocations: 7.938 kB / 480.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.631e-05/0.1195, allocations: 123.2 kB / 480.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1195, allocations: 0 / 480.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.1198, allocations: 51.81 kB / 481 MB, free: 3.777 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.0008933/0.1207, allocations: 0.9156 MB / 481.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002086/0.1209, allocations: 99.78 kB / 482 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1209, allocations: 0 / 482 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.055e-05/0.121, allocations: 28.73 kB / 482 MB, free: 2.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.1213, allocations: 16.06 kB / 482 MB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.1232, allocations: 1.969 MB / 484 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1235, allocations: 0.7358 MB / 484.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.012e-05/0.1236, allocations: 21.34 kB / 484.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.955e-05/0.1237, allocations: 51.42 kB / 484.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1237, allocations: 4 kB / 484.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.1431, allocations: 3.517 MB / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/7.802, allocations: 22.67 kB / 488.3 MB, free: 12.36 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)