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.004913/0.004913, allocations: 98.64 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.001262/0.001262, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.392/1.392, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009526/0.009527, allocations: 1.932 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.00204/0.00204, allocations: 75.88 kB / 377.8 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.09044, allocations: 47.13 MB / 424.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestCylinderUnitOnOff): time 0.1599/0.2503, allocations: 3.391 MB / 428.3 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.2515, allocations: 0.8747 MB / 429.1 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.2517, allocations: 5.219 kB / 429.2 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.2519, allocations: 66.7 kB / 429.2 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.2521, allocations: 134.7 kB / 429.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.2524, allocations: 123.5 kB / 429.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.2529, allocations: 0.5168 MB / 430 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.2531, allocations: 156.2 kB / 430.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.2533, allocations: 187.8 kB / 430.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.2535, allocations: 210.1 kB / 430.5 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.983e-05/0.2536, allocations: 42.06 kB / 430.6 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.2537, allocations: 47.83 kB / 430.6 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.357e-05/0.2538, allocations: 90 kB / 430.7 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.2539, allocations: 221.1 kB / 430.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004745/0.2544, allocations: 474.5 kB / 431.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2544, allocations: 1.219 kB / 431.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2544, allocations: 0.5625 kB / 431.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.2545, allocations: 0 / 431.4 MB, free: 8.711 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.00113/0.2556, allocations: 0.7578 MB / 432.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.2556, allocations: 13.61 kB / 432.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.742e-05/0.2557, allocations: 73.41 kB / 432.2 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.929e-05/0.2558, allocations: 46.69 kB / 432.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.2561, allocations: 313.2 kB / 432.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.2562, allocations: 27.34 kB / 432.6 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/0.2562, allocations: 41.39 kB / 432.6 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.2567, allocations: 291.4 kB / 432.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.2568, allocations: 1.438 kB / 432.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.2568, allocations: 11.34 kB / 432.9 MB, free: 7.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.2568, allocations: 7.062 kB / 432.9 MB, free: 7.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005111/0.2573, allocations: 240 kB / 433.2 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.2586, allocations: 0.9277 MB / 434.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005108/0.2592, allocations: 259.6 kB / 434.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.2594, allocations: 119.8 kB / 434.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.2594, allocations: 3.281 kB / 434.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003504/0.2598, allocations: 194.8 kB / 434.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.633e-06/0.2598, allocations: 1.25 kB / 434.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.002229/0.262, allocations: 1.225 MB / 435.9 MB, free: 5.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.2621, allocations: 58.3 kB / 436 MB, free: 5.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.2624, allocations: 305.9 kB / 436.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.2624, allocations: 32.33 kB / 436.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.329e-05/0.2625, allocations: 196.3 kB / 436.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.2626, allocations: 123.9 kB / 436.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2627, allocations: 71.5 kB / 436.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.214e-05/0.2628, allocations: 348.9 kB / 437 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.263, allocations: 113.2 kB / 437.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.2633, allocations: 150.2 kB / 437.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.2638, allocations: 281.3 kB / 437.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2638, allocations: 0.5625 kB / 437.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006635/0.2645, allocations: 385.6 kB / 437.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.2645, allocations: 32.83 kB / 438 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2645, allocations: 0 / 438 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2645, allocations: 7.25 kB / 438 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/0.2649, allocations: 73.44 kB / 438 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2649, allocations: 2.312 kB / 438 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/0.2651, allocations: 22.25 kB / 438.1 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.2651, allocations: 13.34 kB / 438.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003064/0.2655, allocations: 221.5 kB / 438.3 MB, free: 4.328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002411/0.2657, allocations: 149.9 kB / 438.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004426/0.2662, allocations: 281.6 kB / 438.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.2662, allocations: 4.453 kB / 438.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.0005867/0.2668, allocations: 381.8 kB / 439.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2668, allocations: 44.8 kB / 439.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-06/0.2668, allocations: 0 / 439.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-06/0.2668, allocations: 2.5 kB / 439.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.2671, allocations: 72.61 kB / 439.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.2671, allocations: 2.219 kB / 439.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.2673, allocations: 26.84 kB / 439.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.2674, allocations: 12.31 kB / 439.2 MB, free: 3.852 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 8.084e-05/0.2675, allocations: 210.4 kB / 439.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.314e-05/0.2675, allocations: 41.17 kB / 439.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006777/0.2682, allocations: 328.7 kB / 439.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2682, allocations: 3.781 kB / 439.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2682, allocations: 0.7188 kB / 439.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2682, allocations: 1.969 kB / 439.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.2694, allocations: 0.883 MB / 440.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2694, allocations: 1.672 kB / 440.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/0.2698, allocations: 79.08 kB / 440.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2698, allocations: 2.859 kB / 440.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.381e-05/0.2698, allocations: 8.453 kB / 440.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.2698, allocations: 8.75 kB / 440.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2698, allocations: 6.781 kB / 440.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008022/0.2706, allocations: 0.5878 MB / 441.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.2708, allocations: 137.2 kB / 441.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.027e-05/0.2708, allocations: 7.453 kB / 441.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.2711, allocations: 29.02 kB / 441.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.2712, allocations: 31.95 kB / 441.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.2712, allocations: 18.78 kB / 441.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001795/0.2714, allocations: 220.3 kB / 441.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2714, allocations: 1.281 kB / 441.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.2719, allocations: 146.4 kB / 442 MB, free: 2.246 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.0009914/0.2729, allocations: 1.131 MB / 443.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008656/0.2738, allocations: 0.5451 MB / 443.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2738, allocations: 0 / 443.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003111/0.2741, allocations: 158.5 kB / 443.8 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.2746, allocations: 65.25 kB / 443.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004657/0.2792, allocations: 3.591 MB / 447.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.2797, allocations: 0.8001 MB / 448.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.2799, allocations: 45.38 kB / 448.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.2801, allocations: 121.7 kB / 448.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2801, allocations: 0 / 448.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.31, allocations: 7.652 MB / 456.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.216/8.526, allocations: 9.516 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)