Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientValve.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.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",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.005733/0.005733, allocations: 100.5 kB / 15.73 MB, free: 6.055 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.001073/0.001073, allocations: 195.4 kB / 16.67 MB, free: 5.953 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.319/1.319, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008585/0.008585, allocations: 1.932 MB / 271.8 MB, free: 3.246 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.001396/0.001396, allocations: 59.91 kB / 377.7 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07949/0.0809, allocations: 47.13 MB / 424.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.1819/0.2629, allocations: 1.961 MB / 426.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008523/0.2638, allocations: 0.5671 MB / 427.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.698e-05/0.2638, allocations: 4.375 kB / 427.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.895e-05/0.2639, allocations: 20.64 kB / 427.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.264, allocations: 43.16 kB / 427.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001945/0.2643, allocations: 38.77 kB / 427.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001634/0.2644, allocations: 144.8 kB / 427.6 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.2646, allocations: 32.77 kB / 427.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.944e-05/0.2646, allocations: 52.69 kB / 427.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.793e-05/0.2647, allocations: 55.55 kB / 427.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.428e-05/0.2648, allocations: 8.188 kB / 427.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.896e-05/0.2648, allocations: 16.83 kB / 427.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.104e-05/0.2649, allocations: 17.88 kB / 427.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.542e-05/0.2649, allocations: 63.91 kB / 427.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.2651, allocations: 106.8 kB / 428 MB, free: 10.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2651, allocations: 0.8906 kB / 428 MB, free: 10.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2651, allocations: 1.344 kB / 428 MB, free: 10.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.2651, allocations: 3.938 kB / 428 MB, free: 10.92 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004438/0.2656, allocations: 428.2 kB / 428.4 MB, free: 10.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.2656, allocations: 12.98 kB / 428.4 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.791e-05/0.2656, allocations: 38.81 kB / 428.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.2657, allocations: 15.59 kB / 428.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.2658, allocations: 211.5 kB / 428.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2658, allocations: 4.719 kB / 428.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.2659, allocations: 8.844 kB / 428.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.266, allocations: 92.75 kB / 428.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.2661, allocations: 0 / 428.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.2661, allocations: 4.75 kB / 428.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2661, allocations: 1.938 kB / 428.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.2662, allocations: 57.64 kB / 428.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004686/0.2667, allocations: 376.5 kB / 429.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004228/0.2671, allocations: 79.67 kB / 429.3 MB, free: 9.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.575e-05/0.2672, allocations: 20.23 kB / 429.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.2672, allocations: 0 / 429.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.232e-05/0.2673, allocations: 33.2 kB / 429.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.2673, allocations: 0 / 429.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.00025/0.2675, allocations: 102.3 kB / 429.4 MB, free: 9.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.764e-05/0.2675, allocations: 53.23 kB / 429.5 MB, free: 9.746 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.2677, allocations: 183.9 kB / 429.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.175e-06/0.2677, allocations: 26.7 kB / 429.7 MB, free: 9.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.2678, allocations: 108.6 kB / 429.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.195e-05/0.2678, allocations: 17.98 kB / 429.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.2678, allocations: 24.72 kB / 429.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.005e-05/0.2679, allocations: 321.2 kB / 430.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.207e-05/0.2679, allocations: 30.8 kB / 430.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.775e-05/0.268, allocations: 17.05 kB / 430.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.2681, allocations: 47.73 kB / 430.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2681, allocations: 0 / 430.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001516/0.2683, allocations: 89.3 kB / 430.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.2683, allocations: 17.36 kB / 430.4 MB, free: 9.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2683, allocations: 0 / 430.4 MB, free: 9.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.2683, allocations: 5.438 kB / 430.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.668e-05/0.2684, allocations: 12.33 kB / 430.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2684, allocations: 0 / 430.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.26e-05/0.2685, allocations: 7.953 kB / 430.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.2685, allocations: 5.469 kB / 430.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.346e-05/0.2686, allocations: 103.9 kB / 430.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.14e-05/0.2686, allocations: 16.36 kB / 430.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.767e-05/0.2687, allocations: 40.34 kB / 430.6 MB, free: 8.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.32e-07/0.2687, allocations: 4 kB / 430.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0001452/0.2689, allocations: 80.72 kB / 430.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.332e-06/0.2689, allocations: 5.625 kB / 430.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-06/0.2689, allocations: 0.75 kB / 430.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-06/0.2689, allocations: 4.969 kB / 430.6 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.697e-05/0.2689, allocations: 15.02 kB / 430.7 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-06/0.269, allocations: 0 / 430.7 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.168e-05/0.269, allocations: 7.75 kB / 430.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-06/0.269, allocations: 1.438 kB / 430.7 MB, free: 8.836 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 4.316e-05/0.2691, allocations: 190.2 kB / 430.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/0.2691, allocations: 17.91 kB / 430.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.2693, allocations: 83.55 kB / 431 MB, free: 8.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.2693, allocations: 1.188 kB / 431 MB, free: 8.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.2693, allocations: 0 / 431 MB, free: 8.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2693, allocations: 0.7031 kB / 431 MB, free: 8.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.2696, allocations: 358.7 kB / 431.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2696, allocations: 1.594 kB / 431.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.015e-05/0.2697, allocations: 9.219 kB / 431.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2697, allocations: 1.656 kB / 431.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.136e-06/0.2697, allocations: 1.031 kB / 431.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.2697, allocations: 1.516 kB / 431.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2697, allocations: 0 / 431.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.2699, allocations: 187.2 kB / 431.5 MB, free: 8.062 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/0.2699, allocations: 96.45 kB / 431.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.27, allocations: 1.891 kB / 431.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.572e-05/0.27, allocations: 3.781 kB / 431.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.2701, allocations: 7.672 kB / 431.6 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.2701, allocations: 1.156 kB / 431.6 MB, free: 7.953 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.388e-05/0.2702, allocations: 142.7 kB / 431.8 MB, free: 7.855 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2702, allocations: 0 / 431.8 MB, free: 7.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.2705, allocations: 34.28 kB / 431.8 MB, free: 7.855 MB / 318.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0002921/0.2708, allocations: 0.7106 MB / 432.5 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002025/0.271, allocations: 71.98 kB / 432.6 MB, free: 7.141 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.271, allocations: 4 kB / 432.6 MB, free: 7.137 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.986e-05/0.2711, allocations: 21.88 kB / 432.6 MB, free: 7.129 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.2714, allocations: 10.58 kB / 432.6 MB, free: 7.125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.2728, allocations: 1.669 MB / 434.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.273, allocations: 0.7039 MB / 435 MB, free: 5.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.63e-05/0.273, allocations: 9.109 kB / 435 MB, free: 5.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.754e-05/0.2731, allocations: 34.59 kB / 435 MB, free: 5.031 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2731, allocations: 0 / 435 MB, free: 5.031 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.29, allocations: 2.467 MB / 437.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.386/7.676, allocations: 6.188 kB / 437.5 MB, free: 4.5 MB / 318.1 MB (rm -f MEV_MEV.Test.TestPatientValve.pipe ; mkfifo MEV_MEV.Test.TestPatientValve.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientValve.pipe >> ../files/MEV_MEV.Test.TestPatientValve.sim & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientValve_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 MEV_MEV_Test_TestPatientValve.fmu > MEV_MEV.Test.TestPatientValve.pipe 2>&1)