Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestStandardPatient.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.TestStandardPatient,fileNamePrefix="MEV_MEV_Test_TestStandardPatient",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestStandardPatient,fileNamePrefix="MEV_MEV_Test_TestStandardPatient",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.005627/0.005627, allocations: 100.8 kB / 15.73 MB, free: 6.449 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.001475/0.001475, allocations: 192.9 kB / 16.67 MB, free: 6.352 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.311/1.311, allocations: 205.1 MB / 222.6 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009805/0.009805, allocations: 1.935 MB / 271.8 MB, free: 3.266 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.001572/0.001572, allocations: 72.11 kB / 377.7 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08251/0.08409, allocations: 47.12 MB / 424.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.1699/0.254, allocations: 3.439 MB / 428.3 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.2557, allocations: 0.9341 MB / 429.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.2559, allocations: 3.938 kB / 429.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.2561, allocations: 58.8 kB / 429.3 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003343/0.2565, allocations: 156.7 kB / 429.5 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004282/0.2569, allocations: 160.1 kB / 429.6 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004903/0.2574, allocations: 0.5631 MB / 430.2 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.2577, allocations: 147.1 kB / 430.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.2579, allocations: 203 kB / 430.5 MB, free: 9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.2581, allocations: 218 kB / 430.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.064e-05/0.2582, allocations: 47.5 kB / 430.8 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.2584, allocations: 67.55 kB / 430.8 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.41e-05/0.2585, allocations: 99.27 kB / 430.9 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.2587, allocations: 237.5 kB / 431.2 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.2592, allocations: 0.508 MB / 431.7 MB, free: 8.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2592, allocations: 5.078 kB / 431.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2592, allocations: 0 / 431.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.2593, allocations: 0 / 431.7 MB, free: 8.492 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001176/0.2604, allocations: 0.7526 MB / 432.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2605, allocations: 9.344 kB / 432.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.374e-05/0.2606, allocations: 69.09 kB / 432.5 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.61e-05/0.2606, allocations: 46.75 kB / 432.6 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.2609, allocations: 318.4 kB / 432.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.261, allocations: 26.62 kB / 432.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.982e-05/0.261, allocations: 31.09 kB / 432.9 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006005/0.2616, allocations: 317.6 kB / 433.2 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.2617, allocations: 0.5625 kB / 433.2 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.2617, allocations: 16.27 kB / 433.3 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.2617, allocations: 7.688 kB / 433.3 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005542/0.2623, allocations: 267 kB / 433.5 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.264, allocations: 1.124 MB / 434.6 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006837/0.2647, allocations: 274.5 kB / 434.9 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.265, allocations: 120.1 kB / 435 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.265, allocations: 8.062 kB / 435 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003853/0.2654, allocations: 165.7 kB / 435.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.245e-06/0.2654, allocations: 0 / 435.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.002762/0.2682, allocations: 0.7008 MB / 435.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.2682, allocations: 55.86 kB / 436 MB, free: 5.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.2686, allocations: 359.6 kB / 436.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.2686, allocations: 30.8 kB / 436.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2687, allocations: 200.8 kB / 436.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.535e-05/0.2688, allocations: 85.72 kB / 436.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.2689, allocations: 66.81 kB / 436.7 MB, free: 5.438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.241e-05/0.2689, allocations: 349.4 kB / 437 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.2692, allocations: 100.9 kB / 437.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/0.2695, allocations: 160.5 kB / 437.3 MB, free: 4.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004884/0.27, allocations: 290.3 kB / 437.6 MB, free: 4.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.27, allocations: 0.5312 kB / 437.6 MB, free: 4.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007551/0.2707, allocations: 426.7 kB / 438 MB, free: 4.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.2708, allocations: 37.58 kB / 438 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.2708, allocations: 5.406 kB / 438 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/0.2724, allocations: 234.6 kB / 438.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.2726, allocations: 43.48 kB / 438.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005388/0.2732, allocations: 0.698 MB / 439 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003796/0.2736, allocations: 41.03 kB / 439 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.2736, allocations: 18.89 kB / 439 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003341/0.274, allocations: 207.4 kB / 439.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000239/0.2742, allocations: 149.2 kB / 439.4 MB, free: 3.613 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004234/0.2746, allocations: 271.8 kB / 439.7 MB, free: 3.438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.695e-06/0.2747, allocations: 0.5312 kB / 439.7 MB, free: 3.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.001076/0.2757, allocations: 438.9 kB / 440.1 MB, free: 3.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.2758, allocations: 41.14 kB / 440.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2758, allocations: 5.875 kB / 440.1 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004422/0.2762, allocations: 102.5 kB / 440.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.2765, allocations: 43.52 kB / 440.3 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/0.2786, allocations: 2.097 MB / 442.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.2789, allocations: 31.39 kB / 442.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.279, allocations: 14.33 kB / 442.4 MB, free: 1.293 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (opening.count,$PRE.opening.count,opening.T_start,$PRE.opening.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.2791, allocations: 201.2 kB / 442.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.841e-05/0.2791, allocations: 40.23 kB / 442.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009961/0.2801, allocations: 398.4 kB / 443 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2802, allocations: 8.266 kB / 443.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.2802, allocations: 0 / 443.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2802, allocations: 1.312 kB / 443.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003592/0.2805, allocations: 391.7 kB / 443.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2805, allocations: 0.875 kB / 443.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.2807, allocations: 27.48 kB / 443.5 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.2817, allocations: 183.2 kB / 443.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.2818, allocations: 12.47 kB / 443.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004949/0.2823, allocations: 0.7028 MB / 444.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2823, allocations: 1 kB / 444.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/0.2835, allocations: 0.5168 MB / 444.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.2837, allocations: 155.7 kB / 445 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/0.2838, allocations: 6.375 kB / 445 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.284, allocations: 14.22 kB / 445 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.127e-05/0.2841, allocations: 26.94 kB / 445.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.2841, allocations: 10.61 kB / 445.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002694/0.2844, allocations: 250.1 kB / 445.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2844, allocations: 0 / 445.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005739/0.285, allocations: 182.2 kB / 445.5 MB, free: 15.38 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (standardPatient.compliance.p,standardPatient.compliance.V,standardPatient.compliance.Vb) * Number of discrete variables: 3 ($whenCondition1,opening.T_start,opening.count) * Number of discrete states: 1 (opening.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001541/0.2865, allocations: 1.059 MB / 446.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.288, allocations: 0.6815 MB / 447.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.288, allocations: 1.125 kB / 447.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004041/0.2884, allocations: 144.6 kB / 447.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.2888, allocations: 53.53 kB / 447.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004959/0.2938, allocations: 3.56 MB / 451 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.2941, allocations: 0.7907 MB / 451.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.2943, allocations: 29.42 kB / 451.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.2944, allocations: 106.9 kB / 451.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2944, allocations: 0 / 451.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03151/0.326, allocations: 8.905 MB / 460.8 MB, free: 6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/11.99, allocations: 5 kB / 460.8 MB, free: 5.996 MB / 334.1 MB (rm -f MEV_MEV.Test.TestStandardPatient.pipe ; mkfifo MEV_MEV.Test.TestStandardPatient.pipe ; head -c 1048576 < MEV_MEV.Test.TestStandardPatient.pipe >> ../files/MEV_MEV.Test.TestStandardPatient.sim & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestStandardPatient_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 MEV_MEV_Test_TestStandardPatient.fmu > MEV_MEV.Test.TestStandardPatient.pipe 2>&1)