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.007893/0.007893, allocations: 94.8 kB / 15.73 MB, free: 6.047 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.001529/0.001529, allocations: 206.3 kB / 16.68 MB, free: 5.973 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.38/1.38, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008346/0.008346, allocations: 1.924 MB / 271.8 MB, free: 3.262 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.002946/0.002947, allocations: 63.91 kB / 377.7 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1325, allocations: 47.13 MB / 424.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestCylinderUnitOnOff): time 0.2218/0.3543, allocations: 3.391 MB / 428.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.3558, allocations: 0.8739 MB / 429.1 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.356, allocations: 8.188 kB / 429.2 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.3562, allocations: 62.38 kB / 429.2 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002939/0.3565, allocations: 149.7 kB / 429.4 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003877/0.3569, allocations: 121.8 kB / 429.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005892/0.3575, allocations: 0.52 MB / 430 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.3578, allocations: 151.6 kB / 430.1 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002653/0.3581, allocations: 189.9 kB / 430.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.3584, allocations: 212.9 kB / 430.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.11e-05/0.3585, allocations: 42.06 kB / 430.6 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.3586, allocations: 51 kB / 430.6 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.3587, allocations: 88.89 kB / 430.7 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002408/0.359, allocations: 218.5 kB / 430.9 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000712/0.3597, allocations: 477.8 kB / 431.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3597, allocations: 1.094 kB / 431.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3597, allocations: 0 / 431.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.3597, allocations: 0 / 431.4 MB, free: 8.703 MB / 318.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.001369/0.3611, allocations: 0.7491 MB / 432.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.3612, allocations: 14.88 kB / 432.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.366e-05/0.3613, allocations: 74.12 kB / 432.2 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.3614, allocations: 47.44 kB / 432.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004752/0.3619, allocations: 313.6 kB / 432.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.3619, allocations: 31.83 kB / 432.6 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.362, allocations: 34.41 kB / 432.7 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006537/0.3627, allocations: 292.5 kB / 432.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.3627, allocations: 0 / 432.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.3627, allocations: 16.58 kB / 433 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.3628, allocations: 6.688 kB / 433 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005837/0.3633, allocations: 244.2 kB / 433.2 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.365, allocations: 0.9248 MB / 434.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006091/0.3656, allocations: 266.1 kB / 434.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.3659, allocations: 117.1 kB / 434.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.3659, allocations: 4.297 kB / 434.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004278/0.3664, allocations: 189.1 kB / 434.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.3664, allocations: 0 / 434.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.002594/0.369, allocations: 1.224 MB / 435.9 MB, free: 5.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.369, allocations: 60.72 kB / 436 MB, free: 5.816 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.3694, allocations: 306.8 kB / 436.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.3694, allocations: 33.3 kB / 436.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.3696, allocations: 190.9 kB / 436.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.833e-05/0.3697, allocations: 124.6 kB / 436.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.3698, allocations: 75.48 kB / 436.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.707e-05/0.3699, allocations: 343.9 kB / 437 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.3702, allocations: 117.9 kB / 437.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.3705, allocations: 151.3 kB / 437.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005117/0.371, allocations: 276.3 kB / 437.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.371, allocations: 1.25 kB / 437.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007246/0.3718, allocations: 386.7 kB / 437.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/0.3718, allocations: 32.59 kB / 438 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3718, allocations: 5.125 kB / 438 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.3719, allocations: 3.312 kB / 438 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003436/0.3722, allocations: 76.2 kB / 438 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.3722, allocations: 6.625 kB / 438.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.3725, allocations: 26.44 kB / 438.1 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.3725, allocations: 10.02 kB / 438.1 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000351/0.3729, allocations: 222 kB / 438.3 MB, free: 4.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000275/0.3732, allocations: 144.6 kB / 438.4 MB, free: 4.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004918/0.3737, allocations: 281.4 kB / 438.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.382e-06/0.3737, allocations: 0 / 438.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.0006826/0.3744, allocations: 383.6 kB / 439.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3744, allocations: 44.08 kB / 439.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-06/0.3744, allocations: 4.969 kB / 439.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.998e-06/0.3744, allocations: 2.25 kB / 439.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.3747, allocations: 73.11 kB / 439.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3748, allocations: 2.281 kB / 439.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.375, allocations: 20.23 kB / 439.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.08e-05/0.375, allocations: 13.3 kB / 439.3 MB, free: 3.848 MB / 318.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.000102/0.3751, allocations: 208.3 kB / 439.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.3752, allocations: 41.61 kB / 439.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008543/0.3761, allocations: 333.7 kB / 439.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.3761, allocations: 3.688 kB / 439.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3761, allocations: 0.7812 kB / 439.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3761, allocations: 5.812 kB / 439.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.3775, allocations: 0.8768 MB / 440.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3775, allocations: 1.781 kB / 440.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.3779, allocations: 75.84 kB / 440.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.3779, allocations: 1.812 kB / 440.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.3779, allocations: 13.03 kB / 440.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3779, allocations: 12.12 kB / 440.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3779, allocations: 5.531 kB / 440.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009285/0.3789, allocations: 0.5788 MB / 441.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.379, allocations: 143 kB / 441.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.885e-05/0.3791, allocations: 13.19 kB / 441.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.3794, allocations: 23.23 kB / 441.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.801e-05/0.3795, allocations: 36.95 kB / 441.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.3795, allocations: 13.7 kB / 441.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.3797, allocations: 225.5 kB / 441.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3797, allocations: 0 / 441.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005341/0.3803, allocations: 146.2 kB / 442 MB, free: 2.242 MB / 318.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.001154/0.3814, allocations: 1.14 MB / 443.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009906/0.3824, allocations: 0.541 MB / 443.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3825, allocations: 0 / 443.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003339/0.3828, allocations: 161.6 kB / 443.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004932/0.3833, allocations: 61.09 kB / 443.9 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005455/0.3888, allocations: 3.584 MB / 447.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004624/0.3892, allocations: 0.8039 MB / 448.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002229/0.3895, allocations: 45.27 kB / 448.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.3897, allocations: 115.5 kB / 448.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3897, allocations: 0 / 448.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03215/0.4218, allocations: 7.657 MB / 456.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/8.524, allocations: 9.719 kB / 456.1 MB, free: 10.8 MB / 334.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)