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-master/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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.0006915/0.0006916, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0007501/0.0007501, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.147/1.147, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007084/0.007084, allocations: 1.912 MB / 272.3 MB, free: 3.379 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.0004755/0.0004755, allocations: 16 kB / 331 MB, free: 33.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06674/0.06723, allocations: 48.09 MB / 379.1 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.003475/0.07074, allocations: 3.7 MB / 382.8 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.07251, allocations: 1.006 MB / 383.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.07281, allocations: 11.94 kB / 383.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.07296, allocations: 63.48 kB / 383.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004642/0.07343, allocations: 206.2 kB / 384.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.07381, allocations: 103.8 kB / 384.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000513/0.07433, allocations: 0.5054 MB / 384.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.07455, allocations: 106.1 kB / 384.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.07478, allocations: 159.3 kB / 384.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.07503, allocations: 191.2 kB / 385.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.07509, allocations: 20 kB / 385.1 MB, free: 11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.0752, allocations: 35.98 kB / 385.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.686e-05/0.07528, allocations: 67.69 kB / 385.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.242e-05/0.07538, allocations: 105.5 kB / 385.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.07574, allocations: 375.1 kB / 385.7 MB, free: 10.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.07575, allocations: 0 / 385.7 MB, free: 10.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.07576, allocations: 7.875 kB / 385.7 MB, free: 10.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.07578, allocations: 0 / 385.7 MB, free: 10.41 MB / 286.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.00112/0.0769, allocations: 0.6658 MB / 386.4 MB, free: 9.691 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.07696, allocations: 15.97 kB / 386.4 MB, free: 9.676 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.071e-05/0.07704, allocations: 70.53 kB / 386.5 MB, free: 9.598 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.881e-05/0.07713, allocations: 43.53 kB / 386.5 MB, free: 9.555 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.07746, allocations: 298.3 kB / 386.8 MB, free: 9.223 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.0775, allocations: 24.61 kB / 386.8 MB, free: 9.199 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.155e-05/0.07755, allocations: 36 kB / 386.9 MB, free: 9.164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000569/0.07813, allocations: 318 kB / 387.2 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.07815, allocations: 0 / 387.2 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.07819, allocations: 16 kB / 387.2 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.07821, allocations: 8 kB / 387.2 MB, free: 8.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005143/0.07873, allocations: 266.5 kB / 387.5 MB, free: 8.562 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.08042, allocations: 1.157 MB / 388.6 MB, free: 7.348 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006263/0.08106, allocations: 282.9 kB / 388.9 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.08132, allocations: 135.2 kB / 389 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.08136, allocations: 0 / 389 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003421/0.0817, allocations: 168.2 kB / 389.2 MB, free: 6.754 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.863e-06/0.08172, allocations: 0 / 389.2 MB, free: 6.754 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.002361/0.08408, allocations: 0.7218 MB / 389.9 MB, free: 6.004 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.08413, allocations: 55.41 kB / 390 MB, free: 5.938 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.08448, allocations: 357.5 kB / 390.3 MB, free: 5.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.08451, allocations: 33.64 kB / 390.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.08464, allocations: 192.4 kB / 390.5 MB, free: 5.348 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.064e-05/0.08471, allocations: 86.73 kB / 390.6 MB, free: 5.262 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-05/0.08473, allocations: 12 kB / 390.6 MB, free: 5.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.08486, allocations: 342.8 kB / 391 MB, free: 4.906 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.08508, allocations: 99.94 kB / 391.1 MB, free: 4.809 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.08534, allocations: 157.5 kB / 391.2 MB, free: 4.633 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.0856, allocations: 153.6 kB / 391.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.08561, allocations: 0 / 391.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006982/0.08631, allocations: 411.7 kB / 391.8 MB, free: 4.059 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-05/0.08642, allocations: 167.9 kB / 391.9 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.08644, allocations: 3.984 kB / 391.9 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.08786, allocations: 224.6 kB / 392.1 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.08806, allocations: 47.92 kB / 392.2 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006174/0.08868, allocations: 0.6966 MB / 392.9 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.08894, allocations: 39.7 kB / 392.9 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.08898, allocations: 12 kB / 392.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-06/0.08899, allocations: 12 kB / 393 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008379/0.08984, allocations: 394.3 kB / 393.3 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.08985, allocations: 4 kB / 393.3 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003472/0.09021, allocations: 108.7 kB / 393.4 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.0904, allocations: 47.97 kB / 393.5 MB, free: 2.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001966/0.09238, allocations: 1.901 MB / 395.4 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.09261, allocations: 47.77 kB / 395.4 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.09264, allocations: 12 kB / 395.5 MB, free: 160 kB / 286.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 ($whenCondition1,$PRE.opening.T_start,opening.T_start,$PRE.opening.count,opening.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.09284, allocations: 229.1 kB / 395.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.09289, allocations: 35.53 kB / 395.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009159/0.09381, allocations: 404.8 kB / 396.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.09383, allocations: 7.938 kB / 396.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.09384, allocations: 3.953 kB / 396.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.09385, allocations: 11.92 kB / 396.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.09422, allocations: 393 kB / 396.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.09423, allocations: 3.984 kB / 396.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.09439, allocations: 27.98 kB / 396.5 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009441/0.09534, allocations: 208.7 kB / 396.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.09538, allocations: 8 kB / 396.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005405/0.09592, allocations: 0.6969 MB / 397.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.09593, allocations: 3.938 kB / 397.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.097, allocations: 0.5285 MB / 398 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.09715, allocations: 152.6 kB / 398.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.0972, allocations: 4 kB / 398.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.09738, allocations: 19.94 kB / 398.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.895e-05/0.09744, allocations: 23.97 kB / 398.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.09747, allocations: 4 kB / 398.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002273/0.0977, allocations: 251.2 kB / 398.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09771, allocations: 4 kB / 398.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004865/0.0982, allocations: 171.7 kB / 398.6 MB, free: 12.87 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.001358/0.09956, allocations: 1.082 MB / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.1008, allocations: 0.6774 MB / 400.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1008, allocations: 0 / 400.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003354/0.1011, allocations: 143.9 kB / 400.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.1014, allocations: 45.8 kB / 400.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.1045, allocations: 2.275 MB / 402.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.1048, allocations: 0.7916 MB / 403.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.105, allocations: 34.95 kB / 403.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.1051, allocations: 99.41 kB / 403.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1051, allocations: 0 / 403.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.1239, allocations: 7.985 MB / 411.7 MB, free: 15.56 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.1241, allocations: 182.8 kB / 411.9 MB, free: 15.31 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/1.77, allocations: 0 / 411.9 MB, free: 15.31 MB / 318.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/linux/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) Environment - environmentSimulation: