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.008063/0.008063, allocations: 95.58 kB / 15.73 MB, free: 6.039 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.001982/0.001982, allocations: 204.6 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.428/1.428, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009155/0.009155, allocations: 1.932 MB / 271.8 MB, free: 3.25 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.002198/0.002198, allocations: 63.91 kB / 377.7 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0856/0.08781, allocations: 47.14 MB / 424.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.1606/0.2484, allocations: 3.426 MB / 428.3 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.2503, allocations: 0.9305 MB / 429.2 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002907/0.2506, allocations: 3.781 kB / 429.2 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.2508, allocations: 61.53 kB / 429.3 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003823/0.2512, allocations: 155.8 kB / 429.5 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005154/0.2517, allocations: 158.3 kB / 429.6 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006967/0.2524, allocations: 0.5581 MB / 430.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.2527, allocations: 155.3 kB / 430.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.253, allocations: 197.6 kB / 430.5 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003301/0.2534, allocations: 217 kB / 430.7 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/0.2535, allocations: 48.16 kB / 430.8 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.2537, allocations: 68.55 kB / 430.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.2537, allocations: 101.6 kB / 430.9 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.254, allocations: 234.5 kB / 431.2 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000637/0.2546, allocations: 0.5126 MB / 431.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2546, allocations: 0 / 431.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2547, allocations: 0 / 431.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.2547, allocations: 4 kB / 431.7 MB, free: 8.5 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.001375/0.2561, allocations: 0.7461 MB / 432.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.2561, allocations: 13.69 kB / 432.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.222e-05/0.2562, allocations: 68.62 kB / 432.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.2563, allocations: 46.59 kB / 432.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.2567, allocations: 317 kB / 432.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.2567, allocations: 26.22 kB / 432.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.505e-05/0.2568, allocations: 31.58 kB / 432.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000629/0.2574, allocations: 317.2 kB / 433.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.2574, allocations: 0 / 433.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.2575, allocations: 12.2 kB / 433.2 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.2575, allocations: 7.406 kB / 433.2 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005815/0.2581, allocations: 264 kB / 433.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.2601, allocations: 1.127 MB / 434.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007593/0.2609, allocations: 278 kB / 434.9 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.2611, allocations: 120.1 kB / 435 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.059e-05/0.2612, allocations: 8.047 kB / 435 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/0.2616, allocations: 169 kB / 435.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 3.256e-06/0.2617, allocations: 0 / 435.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.002863/0.2645, allocations: 0.6893 MB / 435.9 MB, free: 6.023 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.2646, allocations: 64.39 kB / 435.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004351/0.265, allocations: 358 kB / 436.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.2651, allocations: 34.98 kB / 436.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.2652, allocations: 201.8 kB / 436.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.552e-05/0.2653, allocations: 88.22 kB / 436.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.2654, allocations: 68.28 kB / 436.7 MB, free: 5.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.884e-05/0.2655, allocations: 345.2 kB / 437 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.2657, allocations: 104.1 kB / 437.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.266, allocations: 165 kB / 437.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005184/0.2666, allocations: 286.5 kB / 437.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2666, allocations: 1.156 kB / 437.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008539/0.2674, allocations: 417 kB / 438 MB, free: 4.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.2675, allocations: 43.06 kB / 438 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.2675, allocations: 3.328 kB / 438 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001779/0.2693, allocations: 234.6 kB / 438.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.2695, allocations: 43.33 kB / 438.3 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006477/0.2702, allocations: 0.6964 MB / 439 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/0.2706, allocations: 42.53 kB / 439 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.2706, allocations: 13.72 kB / 439 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003667/0.271, allocations: 213 kB / 439.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002479/0.2713, allocations: 148.6 kB / 439.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004424/0.2717, allocations: 267 kB / 439.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.565e-06/0.2717, allocations: 0 / 439.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.001106/0.2729, allocations: 443.6 kB / 440.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.2729, allocations: 37.16 kB / 440.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2729, allocations: 1.594 kB / 440.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004687/0.2734, allocations: 103.1 kB / 440.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.2737, allocations: 47.06 kB / 440.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.2758, allocations: 2.097 MB / 442.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.2761, allocations: 31.78 kB / 442.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.2762, allocations: 11.53 kB / 442.4 MB, free: 1.305 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.0001173/0.2763, allocations: 200.4 kB / 442.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.652e-05/0.2764, allocations: 39.2 kB / 442.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.2775, allocations: 397.2 kB / 443 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.2775, allocations: 3.375 kB / 443 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.2775, allocations: 0 / 443 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.2775, allocations: 7.516 kB / 443 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004751/0.278, allocations: 393.1 kB / 443.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.278, allocations: 0 / 443.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.2782, allocations: 30.73 kB / 443.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.2793, allocations: 184 kB / 443.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.2794, allocations: 11.8 kB / 443.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005897/0.28, allocations: 0.7011 MB / 444.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.28, allocations: 0.7031 kB / 444.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.2814, allocations: 0.5229 MB / 444.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.2817, allocations: 151.2 kB / 445 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.049e-05/0.2818, allocations: 11.48 kB / 445 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.282, allocations: 14.39 kB / 445 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.587e-05/0.2821, allocations: 22.53 kB / 445.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.2821, allocations: 6.203 kB / 445.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003209/0.2825, allocations: 249.8 kB / 445.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2825, allocations: 4 kB / 445.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006505/0.2831, allocations: 182.5 kB / 445.5 MB, free: 15.39 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.001876/0.285, allocations: 1.061 MB / 446.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.2868, allocations: 0.6815 MB / 447.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2869, allocations: 0 / 447.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004541/0.2873, allocations: 141.2 kB / 447.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.2878, allocations: 55.25 kB / 447.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005774/0.2936, allocations: 3.554 MB / 451 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.2941, allocations: 0.7895 MB / 451.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001641/0.2942, allocations: 30.8 kB / 451.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.2944, allocations: 105.6 kB / 451.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2944, allocations: 3.938 kB / 451.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0404/0.3348, allocations: 8.915 MB / 460.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.38, allocations: 5.125 kB / 460.8 MB, free: 6.043 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestStandardPatient_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestStandardPatient.fmu > MEV_MEV.Test.TestStandardPatient.pipe 2>&1)