Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestCylinderUnitOnOff.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(MEV.Test.TestCylinderUnitOnOff,fileNamePrefix="MEV_MEV_Test_TestCylinderUnitOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestCylinderUnitOnOff,fileNamePrefix="MEV_MEV_Test_TestCylinderUnitOnOff",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.001321/0.001321, allocations: 108 kB / 15.61 MB, free: 152 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.001529/0.001529, allocations: 197 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01104/0.01104, allocations: 1.93 MB / 271.7 MB, free: 3.344 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 71.89 kB / 329.9 MB, free: 32.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07753/0.079, allocations: 47.12 MB / 377.1 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestCylinderUnitOnOff): time 0.005118/0.08416, allocations: 3.397 MB / 380.5 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.08641, allocations: 0.866 MB / 381.3 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004117/0.08685, allocations: 7.938 kB / 381.3 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002765/0.08718, allocations: 63.42 kB / 381.4 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004761/0.08767, allocations: 146.7 kB / 381.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004998/0.08818, allocations: 123.8 kB / 381.7 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008545/0.08905, allocations: 0.5056 MB / 382.2 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.08945, allocations: 152.8 kB / 382.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004158/0.08988, allocations: 187.2 kB / 382.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.09018, allocations: 207 kB / 382.7 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.495e-05/0.09025, allocations: 44 kB / 382.7 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.09039, allocations: 48 kB / 382.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.23e-05/0.09049, allocations: 95.62 kB / 382.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.09073, allocations: 219 kB / 383.1 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004921/0.09123, allocations: 474.4 kB / 383.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.09124, allocations: 0 / 383.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.09126, allocations: 0 / 383.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.09128, allocations: 0 / 383.6 MB, free: 11.01 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001398/0.09268, allocations: 0.74 MB / 384.3 MB, free: 10.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.09274, allocations: 11.89 kB / 384.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.975e-05/0.09284, allocations: 74.72 kB / 384.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.09297, allocations: 44.38 kB / 384.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.09341, allocations: 307.5 kB / 384.7 MB, free: 9.734 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.09345, allocations: 32.78 kB / 384.8 MB, free: 9.703 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.934e-05/0.09355, allocations: 43.89 kB / 384.8 MB, free: 9.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006149/0.09417, allocations: 290 kB / 385.1 MB, free: 9.371 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.0942, allocations: 4 kB / 385.1 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.09424, allocations: 8 kB / 385.1 MB, free: 9.359 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.09426, allocations: 8 kB / 385.1 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005422/0.09481, allocations: 234.5 kB / 385.3 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.09656, allocations: 0.9479 MB / 386.3 MB, free: 8.121 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006011/0.09718, allocations: 259.2 kB / 386.5 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.09744, allocations: 113.3 kB / 386.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.474e-05/0.09748, allocations: 4.234 kB / 386.7 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004813/0.09797, allocations: 195.4 kB / 386.8 MB, free: 7.539 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.375e-06/0.09799, allocations: 0 / 386.8 MB, free: 7.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=36): time 0.002519/0.1005, allocations: 1.22 MB / 388.1 MB, free: 6.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.1006, allocations: 59.41 kB / 388.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003723/0.101, allocations: 300.6 kB / 388.4 MB, free: 5.859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.101, allocations: 33.7 kB / 388.5 MB, free: 5.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.1012, allocations: 196.6 kB / 388.6 MB, free: 5.625 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.1013, allocations: 122.3 kB / 388.8 MB, free: 5.504 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.1014, allocations: 77.91 kB / 388.8 MB, free: 5.422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1016, allocations: 342.8 kB / 389.2 MB, free: 5.078 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.1019, allocations: 114.4 kB / 389.3 MB, free: 4.965 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.1021, allocations: 149.6 kB / 389.4 MB, free: 4.809 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005119/0.1027, allocations: 281.9 kB / 389.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1027, allocations: 0 / 389.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007315/0.1034, allocations: 389.7 kB / 390.1 MB, free: 4.125 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.719e-05/0.1035, allocations: 30.33 kB / 390.1 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1035, allocations: 7.984 kB / 390.1 MB, free: 4.082 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1035, allocations: 0 / 390.1 MB, free: 4.082 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.1038, allocations: 67.91 kB / 390.2 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.1039, allocations: 4 kB / 390.2 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.1041, allocations: 27.97 kB / 390.2 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.1042, allocations: 15.94 kB / 390.2 MB, free: 3.969 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003633/0.1045, allocations: 224.5 kB / 390.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002793/0.1048, allocations: 145.1 kB / 390.6 MB, free: 3.598 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005361/0.1054, allocations: 276 kB / 390.9 MB, free: 3.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.894e-06/0.1054, allocations: 0 / 390.9 MB, free: 3.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.0007187/0.1061, allocations: 378.7 kB / 391.2 MB, free: 2.93 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.1062, allocations: 33.69 kB / 391.3 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1062, allocations: 4 kB / 391.3 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.898e-06/0.1062, allocations: 0 / 391.3 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003002/0.1065, allocations: 75.84 kB / 391.3 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.1065, allocations: 4 kB / 391.4 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.1068, allocations: 28.03 kB / 391.4 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.1068, allocations: 16 kB / 391.4 MB, free: 2.766 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (controller.on,$PRE.controller.on,opening.count,$PRE.opening.count,opening.T_start,$PRE.opening.T_start,$whenCondition1,$whenCondition3,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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.0001458/0.107, allocations: 199.3 kB / 391.6 MB, free: 2.566 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.107, allocations: 39.47 kB / 391.6 MB, free: 2.527 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007087/0.1077, allocations: 336.7 kB / 392 MB, free: 2.191 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1078, allocations: 4 kB / 392 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1078, allocations: 0 / 392 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.1078, allocations: 7.984 kB / 392 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.1092, allocations: 0.877 MB / 392.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1092, allocations: 4.156 kB / 392.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004359/0.1096, allocations: 79.89 kB / 392.9 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.1097, allocations: 4 kB / 392.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.1097, allocations: 7.938 kB / 392.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1097, allocations: 4 kB / 392.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.1097, allocations: 11.88 kB / 393 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009434/0.1106, allocations: 0.5735 MB / 393.5 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.1108, allocations: 140.7 kB / 393.7 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.891e-05/0.1109, allocations: 8 kB / 393.7 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002776/0.1112, allocations: 31.97 kB / 393.7 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.1113, allocations: 39.83 kB / 393.7 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.1113, allocations: 12 kB / 393.8 MB, free: 276 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002194/0.1115, allocations: 219.1 kB / 394 MB, free: 56 kB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1115, allocations: 0 / 394 MB, free: 56 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005419/0.1121, allocations: 148 kB / 394.1 MB, free: 15.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (bellJar.cylinder.M,bellJar.damper.s_rel,bellJar.damper.v_rel) * Number of discrete variables: 6 ($whenCondition2,$whenCondition3,$whenCondition1,opening.T_start,opening.count,controller.on) * Number of discrete states: 1 (opening.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * 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.001276/0.1134, allocations: 1.138 MB / 395.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.1145, allocations: 0.5573 MB / 395.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1145, allocations: 0 / 395.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.1148, allocations: 160.3 kB / 396 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.1154, allocations: 76.14 kB / 396 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0051/0.1205, allocations: 3.609 MB / 399.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.1209, allocations: 0.7962 MB / 400.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.1211, allocations: 46.92 kB / 400.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.1213, allocations: 111.4 kB / 400.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1213, allocations: 0 / 400.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1476, allocations: 7.512 MB / 408.1 MB, free: 1.621 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/7.879, allocations: 8.047 kB / 408.1 MB, free: 1.613 MB / 302.1 MB (rm -f MEV_MEV.Test.TestCylinderUnitOnOff.pipe ; mkfifo MEV_MEV.Test.TestCylinderUnitOnOff.pipe ; head -c 1048576 < MEV_MEV.Test.TestCylinderUnitOnOff.pipe >> ../files/MEV_MEV.Test.TestCylinderUnitOnOff.sim & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestCylinderUnitOnOff_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 MEV_MEV_Test_TestCylinderUnitOnOff.fmu > MEV_MEV.Test.TestCylinderUnitOnOff.pipe 2>&1)