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.001566/0.001571, allocations: 108.6 kB / 15.73 MB, free: 72 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.001773/0.001774, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.422/1.422, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009191/0.009191, allocations: 1.935 MB / 271.8 MB, free: 3.242 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.002095/0.002095, allocations: 71.91 kB / 377.7 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.0894, allocations: 47.13 MB / 424.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.1671/0.2565, allocations: 1.954 MB / 426.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009126/0.2574, allocations: 0.5692 MB / 427.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.089e-05/0.2575, allocations: 3.312 kB / 427.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.899e-05/0.2576, allocations: 15.69 kB / 427.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.2578, allocations: 45.77 kB / 427.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.258, allocations: 34.5 kB / 427.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.2582, allocations: 138.3 kB / 427.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.2583, allocations: 39.39 kB / 427.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.163e-05/0.2584, allocations: 51.41 kB / 427.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.864e-05/0.2585, allocations: 52.31 kB / 427.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.2585, allocations: 9.219 kB / 427.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.224e-05/0.2586, allocations: 17.77 kB / 427.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.24e-05/0.2586, allocations: 22.52 kB / 427.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.891e-05/0.2587, allocations: 60.06 kB / 427.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.2588, allocations: 109 kB / 428 MB, free: 10.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2589, allocations: 0 / 428 MB, free: 10.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2589, allocations: 5.062 kB / 428 MB, free: 10.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.2589, allocations: 0 / 428 MB, free: 10.32 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.0004869/0.2594, allocations: 428.3 kB / 428.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.2594, allocations: 12.27 kB / 428.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.903e-05/0.2595, allocations: 42.42 kB / 428.5 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.2595, allocations: 17.31 kB / 428.5 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.2596, allocations: 207.4 kB / 428.7 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.2597, allocations: 5.703 kB / 428.7 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.2597, allocations: 6.75 kB / 428.7 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.2599, allocations: 89.53 kB / 428.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2599, allocations: 0.9375 kB / 428.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.2599, allocations: 11.41 kB / 428.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2599, allocations: 1.562 kB / 428.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.2601, allocations: 52.61 kB / 428.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.2606, allocations: 384.8 kB / 429.2 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.261, allocations: 70.09 kB / 429.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.042e-05/0.2611, allocations: 23.56 kB / 429.3 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.2611, allocations: 1.344 kB / 429.3 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.311e-05/0.2611, allocations: 32.5 kB / 429.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.312e-06/0.2611, allocations: 0 / 429.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002647/0.2614, allocations: 100.7 kB / 429.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.341e-05/0.2614, allocations: 53.44 kB / 429.5 MB, free: 9.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.2616, allocations: 182.4 kB / 429.7 MB, free: 9.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.994e-06/0.2616, allocations: 25.7 kB / 429.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.701e-05/0.2616, allocations: 114.6 kB / 429.8 MB, free: 8.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.104e-05/0.2617, allocations: 10.89 kB / 429.8 MB, free: 8.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.2617, allocations: 24.41 kB / 429.8 MB, free: 8.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.173e-05/0.2618, allocations: 324 kB / 430.2 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.621e-05/0.2618, allocations: 26.38 kB / 430.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.245e-05/0.2619, allocations: 21.3 kB / 430.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.262, allocations: 47.11 kB / 430.2 MB, free: 8.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.262, allocations: 2.625 kB / 430.2 MB, free: 8.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001584/0.2622, allocations: 92.06 kB / 430.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2622, allocations: 12.73 kB / 430.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.2622, allocations: 1.469 kB / 430.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.2622, allocations: 4 kB / 430.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.152e-05/0.2623, allocations: 16.44 kB / 430.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.2623, allocations: 0 / 430.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.194e-05/0.2624, allocations: 8.906 kB / 430.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.2624, allocations: 1.562 kB / 430.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.533e-05/0.2625, allocations: 102.9 kB / 430.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.238e-05/0.2626, allocations: 18.95 kB / 430.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.559e-05/0.2626, allocations: 43.03 kB / 430.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.01e-07/0.2627, allocations: 5.062 kB / 430.5 MB, free: 8.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.000135/0.2628, allocations: 78.17 kB / 430.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.244e-06/0.2628, allocations: 6.344 kB / 430.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-06/0.2628, allocations: 0 / 430.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-06/0.2628, allocations: 5.594 kB / 430.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.787e-05/0.2629, allocations: 10.48 kB / 430.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-06/0.2629, allocations: 1.312 kB / 430.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.739e-05/0.263, allocations: 6.984 kB / 430.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-06/0.263, allocations: 5.266 kB / 430.7 MB, free: 8.359 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.521e-05/0.263, allocations: 188.5 kB / 430.8 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.263, allocations: 22.2 kB / 430.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002006/0.2633, allocations: 78.59 kB / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.2633, allocations: 0 / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2633, allocations: 1.688 kB / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.2633, allocations: 0 / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.2636, allocations: 356.3 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2636, allocations: 0.7031 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.134e-05/0.2637, allocations: 8.984 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2637, allocations: 1.094 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.2637, allocations: 1.5 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.2637, allocations: 0.5156 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2637, allocations: 1.375 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.2639, allocations: 185.5 kB / 431.5 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.2639, allocations: 98.08 kB / 431.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.264, allocations: 1.031 kB / 431.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.537e-05/0.264, allocations: 7.75 kB / 431.6 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.283e-05/0.2641, allocations: 2.719 kB / 431.6 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.2641, allocations: 1.344 kB / 431.6 MB, free: 7.539 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.44e-05/0.2642, allocations: 140.6 kB / 431.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2642, allocations: 0 / 431.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.2645, allocations: 41.47 kB / 431.8 MB, free: 7.457 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.0003083/0.2648, allocations: 0.7144 MB / 432.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002191/0.2651, allocations: 70.62 kB / 432.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2651, allocations: 9.031 kB / 432.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.146e-05/0.2651, allocations: 14.19 kB / 432.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.2655, allocations: 15.12 kB / 432.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.267, allocations: 1.669 MB / 434.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001406/0.2671, allocations: 0.7001 MB / 435 MB, free: 4.816 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.378e-05/0.2672, allocations: 9.375 kB / 435 MB, free: 4.816 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.2673, allocations: 30.69 kB / 435 MB, free: 4.793 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2673, allocations: 0 / 435 MB, free: 4.793 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.2913, allocations: 2.477 MB / 437.5 MB, free: 4.262 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.843/8.135, allocations: 5.344 kB / 437.5 MB, free: 4.258 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientValve.fmu > MEV_MEV.Test.TestPatientValve.pipe 2>&1)