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.007128/0.007128, allocations: 103.4 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.00169/0.001691, allocations: 189.8 kB / 16.67 MB, free: 5.965 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.307/1.307, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008955/0.008955, allocations: 1.935 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.0015/0.0015, allocations: 67.89 kB / 377.7 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07773/0.07924, allocations: 47.13 MB / 424.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.172/0.2513, allocations: 3.435 MB / 428.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.2526, allocations: 0.9279 MB / 429.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.2527, allocations: 4.094 kB / 429.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.2529, allocations: 57.8 kB / 429.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.2532, allocations: 150.1 kB / 429.4 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003736/0.2535, allocations: 156.2 kB / 429.6 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004809/0.254, allocations: 0.5671 MB / 430.2 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002605/0.2543, allocations: 151.8 kB / 430.3 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.2545, allocations: 200.2 kB / 430.5 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002957/0.2548, allocations: 219 kB / 430.7 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.617e-05/0.2549, allocations: 47.34 kB / 430.8 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.2551, allocations: 68.25 kB / 430.8 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.327e-05/0.2551, allocations: 94.17 kB / 430.9 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.2553, allocations: 242 kB / 431.2 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005058/0.2559, allocations: 0.5086 MB / 431.7 MB, free: 8.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2559, allocations: 4 kB / 431.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2559, allocations: 0 / 431.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.2559, allocations: 0 / 431.7 MB, free: 8.516 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.001139/0.257, allocations: 0.7439 MB / 432.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2571, allocations: 9.031 kB / 432.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.206e-05/0.2571, allocations: 72.38 kB / 432.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.431e-05/0.2572, allocations: 42.53 kB / 432.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.2575, allocations: 308 kB / 432.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.2575, allocations: 26.81 kB / 432.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.853e-05/0.2576, allocations: 30.28 kB / 432.9 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005855/0.2582, allocations: 318.6 kB / 433.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.2582, allocations: 0.7031 kB / 433.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.2583, allocations: 20.09 kB / 433.2 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.2583, allocations: 8.375 kB / 433.2 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005737/0.2588, allocations: 254.2 kB / 433.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.2607, allocations: 1.133 MB / 434.6 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007017/0.2614, allocations: 274 kB / 434.9 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.2617, allocations: 121.9 kB / 435 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.411e-05/0.2617, allocations: 8.859 kB / 435 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004148/0.2621, allocations: 166.4 kB / 435.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.2621, allocations: 0 / 435.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.002742/0.2649, allocations: 0.6961 MB / 435.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.422e-05/0.2649, allocations: 59.62 kB / 435.9 MB, free: 5.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.2653, allocations: 352.2 kB / 436.3 MB, free: 5.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.2653, allocations: 32.02 kB / 436.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2654, allocations: 198 kB / 436.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.2654, allocations: 86.09 kB / 436.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2656, allocations: 66.52 kB / 436.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.965e-05/0.2656, allocations: 340.8 kB / 437 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.2659, allocations: 109.5 kB / 437.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002663/0.2662, allocations: 159.8 kB / 437.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000478/0.2666, allocations: 290.6 kB / 437.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.2667, allocations: 2.422 kB / 437.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007552/0.2674, allocations: 421.1 kB / 437.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.2675, allocations: 32.98 kB / 438 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2675, allocations: 6.062 kB / 438 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/0.2692, allocations: 240.1 kB / 438.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.2694, allocations: 42.42 kB / 438.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005223/0.2699, allocations: 0.6914 MB / 438.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003027/0.2702, allocations: 40.66 kB / 439 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.2702, allocations: 17.05 kB / 439 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003007/0.2706, allocations: 209.1 kB / 439.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00024/0.2708, allocations: 154 kB / 439.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004284/0.2712, allocations: 271.4 kB / 439.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.493e-06/0.2712, allocations: 0 / 439.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.00105/0.2723, allocations: 438.6 kB / 440 MB, free: 3.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.2723, allocations: 41.52 kB / 440.1 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2724, allocations: 5.719 kB / 440.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.2728, allocations: 94.81 kB / 440.2 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.273, allocations: 50.56 kB / 440.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/0.2749, allocations: 2.096 MB / 442.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/0.2752, allocations: 30.59 kB / 442.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.2752, allocations: 13.31 kB / 442.4 MB, free: 1.352 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 9.444e-05/0.2753, allocations: 199.3 kB / 442.6 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.2753, allocations: 43.84 kB / 442.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/0.2764, allocations: 393.8 kB / 443 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2764, allocations: 3.203 kB / 443 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.2764, allocations: 5.031 kB / 443 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.2764, allocations: 1.312 kB / 443 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003598/0.2768, allocations: 391.2 kB / 443.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2768, allocations: 0 / 443.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.277, allocations: 34.58 kB / 443.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.278, allocations: 182.3 kB / 443.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.278, allocations: 11.95 kB / 443.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004439/0.2785, allocations: 0.6932 MB / 444.3 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2785, allocations: 0 / 444.3 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.2798, allocations: 0.5196 MB / 444.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.2799, allocations: 151.1 kB / 445 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.28, allocations: 7.328 kB / 445 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.2802, allocations: 18.42 kB / 445 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.459e-05/0.2803, allocations: 22.3 kB / 445 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.2803, allocations: 11.73 kB / 445 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.2806, allocations: 249.1 kB / 445.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2806, allocations: 0 / 445.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005575/0.2812, allocations: 177.7 kB / 445.4 MB, free: 15.45 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.001528/0.2827, allocations: 1.055 MB / 446.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.2842, allocations: 0.687 MB / 447.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2842, allocations: 0 / 447.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003893/0.2846, allocations: 141.6 kB / 447.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.285, allocations: 52.08 kB / 447.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.2899, allocations: 3.536 MB / 450.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.2903, allocations: 0.7946 MB / 451.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001373/0.2905, allocations: 33.41 kB / 451.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.2906, allocations: 100.9 kB / 451.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2906, allocations: 0 / 451.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03187/0.3225, allocations: 9.098 MB / 460.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.53, allocations: 5 kB / 460.9 MB, free: 5.906 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)