Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2238/0.2238, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002287/0.002287, allocations: 78.8 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1032, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003476/0.1067, allocations: 1.909 MB / 482.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.1088, allocations: 1.185 MB / 483.3 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.436e-05/0.1089, allocations: 4 kB / 483.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006449/0.1095, allocations: 183.5 kB / 483.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000401/0.1099, allocations: 167.3 kB / 483.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004236/0.1104, allocations: 171.5 kB / 483.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003723/0.1108, allocations: 283.3 kB / 484.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.1109, allocations: 25.69 kB / 484.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.1111, allocations: 115.7 kB / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.1112, allocations: 115.5 kB / 484.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.734e-05/0.1113, allocations: 16 kB / 484.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.1114, allocations: 67.92 kB / 484.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.622e-05/0.1115, allocations: 63.8 kB / 484.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.1117, allocations: 107.5 kB / 484.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003724/0.1121, allocations: 283.3 kB / 484.9 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1121, allocations: 3.938 kB / 484.9 MB, free: 460 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1121, allocations: 4 kB / 484.9 MB, free: 456 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1121, allocations: 0 / 484.9 MB, free: 456 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.00103/0.1131, allocations: 0.6594 MB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1132, allocations: 8.031 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.245e-05/0.1132, allocations: 46.75 kB / 485.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.585e-05/0.1133, allocations: 32.56 kB / 485.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.1137, allocations: 279.6 kB / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.1138, allocations: 97.42 kB / 486 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.1139, allocations: 20 kB / 486 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.1142, allocations: 160.4 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.1142, allocations: 0 / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.1143, allocations: 4 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.1143, allocations: 0 / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.1145, allocations: 91.88 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008289/0.1154, allocations: 0.614 MB / 486.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.1157, allocations: 179.9 kB / 487 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.1159, allocations: 94.53 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.116, allocations: 4 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004793/0.1165, allocations: 440.1 kB / 487.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.1165, allocations: 0 / 487.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008657/0.1173, allocations: 446.3 kB / 488 MB, free: 12.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.1175, allocations: 221.6 kB / 488.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.1179, allocations: 330.5 kB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.1179, allocations: 33.7 kB / 488.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.118, allocations: 128.7 kB / 488.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.498e-05/0.1181, allocations: 51.34 kB / 488.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-05/0.1182, allocations: 53.69 kB / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1183, allocations: 338.8 kB / 489.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.1185, allocations: 63.97 kB / 489.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.1187, allocations: 142.2 kB / 489.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/0.1191, allocations: 354.9 kB / 489.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1192, allocations: 8 kB / 489.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005497/0.1197, allocations: 350 kB / 490 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.892e-05/0.1198, allocations: 97.09 kB / 490.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1198, allocations: 0 / 490.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1198, allocations: 4 kB / 490.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.777e-05/0.1199, allocations: 23.92 kB / 490.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.12, allocations: 8.219 kB / 490.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.1201, allocations: 28.2 kB / 490.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.1201, allocations: 8 kB / 490.2 MB, free: 10.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002458/0.1204, allocations: 277.4 kB / 490.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.078e-05/0.1204, allocations: 35.66 kB / 490.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.428e-05/0.1205, allocations: 25.7 kB / 490.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1205, allocations: 4 kB / 490.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1205, allocations: 4 kB / 490.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1205, allocations: 0 / 490.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/0.1208, allocations: 293.4 kB / 490.8 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1208, allocations: 3.938 kB / 490.8 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.696e-05/0.1209, allocations: 4 kB / 490.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1209, allocations: 4 kB / 490.8 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.1209, allocations: 12 kB / 490.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1209, allocations: 0 / 490.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1209, allocations: 0 / 490.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006733/0.1216, allocations: 452.8 kB / 491.3 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.382e-05/0.1217, allocations: 108.6 kB / 491.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/0.1218, allocations: 15.98 kB / 491.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.1219, allocations: 15.94 kB / 491.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.145e-05/0.122, allocations: 23.97 kB / 491.4 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.122, allocations: 12 kB / 491.5 MB, free: 9.133 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002547/0.1222, allocations: 241.9 kB / 491.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1223, allocations: 0 / 491.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003097/0.1226, allocations: 64 kB / 491.8 MB, free: 8.836 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.002368/0.1249, allocations: 1.301 MB / 493.1 MB, free: 7.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005916/0.1256, allocations: 397.9 kB / 493.4 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1256, allocations: 4 kB / 493.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.126, allocations: 342.5 kB / 493.8 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.1263, allocations: 56.41 kB / 493.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003671/0.13, allocations: 2.856 MB / 496.7 MB, free: 3.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000387/0.1304, allocations: 0.7518 MB / 497.4 MB, free: 2.965 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.756e-05/0.1305, allocations: 37.83 kB / 497.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.1306, allocations: 67.41 kB / 497.6 MB, free: 2.863 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1306, allocations: 0 / 497.6 MB, free: 2.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.1584, allocations: 6.127 MB / 0.4919 GB, free: 12.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.051, allocations: 2.781 kB / 0.4919 GB, free: 12.8 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe 2>&1)