Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",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.004677/0.004677, allocations: 101.8 kB / 15.73 MB, free: 6.062 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.001256/0.001256, allocations: 192 kB / 16.67 MB, free: 5.973 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.415/1.415, 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.008918/0.008918, allocations: 1.947 MB / 271.8 MB, free: 3.254 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.002075/0.002075, allocations: 64.12 kB / 377.7 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08546/0.08754, allocations: 47.13 MB / 424.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002695/0.09028, allocations: 1.525 MB / 426.4 MB, free: 160 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1593/0.2496, allocations: 0.7396 MB / 427.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.156e-05/0.2497, allocations: 1.125 kB / 427.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.2499, allocations: 55.12 kB / 427.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.25, allocations: 56.44 kB / 427.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.2507, allocations: 168.7 kB / 427.4 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.2509, allocations: 170.8 kB / 427.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.631e-05/0.251, allocations: 14.94 kB / 427.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.2512, allocations: 83.25 kB / 427.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.2514, allocations: 103 kB / 427.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.2514, allocations: 9.25 kB / 427.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002594/0.2517, allocations: 159.6 kB / 427.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.778e-05/0.2518, allocations: 36.11 kB / 428 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.032e-05/0.2519, allocations: 59.22 kB / 428 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003916/0.2523, allocations: 227.7 kB / 428.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2523, allocations: 0.8438 kB / 428.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2523, allocations: 5.531 kB / 428.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.2523, allocations: 1 kB / 428.3 MB, free: 10.36 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0008039/0.2531, allocations: 0.5268 MB / 428.8 MB, free: 9.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2532, allocations: 12.92 kB / 428.8 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.439e-05/0.2533, allocations: 39.81 kB / 428.8 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.07e-05/0.2533, allocations: 21.98 kB / 428.9 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.2536, allocations: 222.3 kB / 429.1 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.607e-05/0.2537, allocations: 35.83 kB / 429.1 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.2537, allocations: 7.75 kB / 429.1 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.254, allocations: 135.7 kB / 429.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.254, allocations: 4 kB / 429.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.2541, allocations: 2.766 kB / 429.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2541, allocations: 1.125 kB / 429.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002227/0.2543, allocations: 93.94 kB / 429.4 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005778/0.2549, allocations: 371.1 kB / 429.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.2552, allocations: 138.2 kB / 429.9 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.2554, allocations: 100.4 kB / 430 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.2554, allocations: 5.156 kB / 430 MB, free: 9.219 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003298/0.2557, allocations: 241.3 kB / 430.2 MB, free: 9.094 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.763e-06/0.2557, allocations: 0 / 430.2 MB, free: 9.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007456/0.2565, allocations: 457.4 kB / 430.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.2565, allocations: 114.9 kB / 430.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.2567, allocations: 181.9 kB / 430.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.2567, allocations: 37.45 kB / 431 MB, free: 8.723 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.2568, allocations: 109.2 kB / 431.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.2568, allocations: 54 kB / 431.1 MB, free: 8.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.039e-05/0.2569, allocations: 44.55 kB / 431.2 MB, free: 8.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.903e-05/0.2569, allocations: 336.6 kB / 431.5 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.2571, allocations: 84.2 kB / 431.6 MB, free: 8.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.2573, allocations: 88.7 kB / 431.7 MB, free: 8.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002974/0.2576, allocations: 294.1 kB / 432 MB, free: 8.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2576, allocations: 1.031 kB / 432 MB, free: 8.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004717/0.2581, allocations: 375.3 kB / 432.3 MB, free: 7.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.2581, allocations: 70.2 kB / 432.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2581, allocations: 1 kB / 432.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2581, allocations: 5.062 kB / 432.4 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.2583, allocations: 19.91 kB / 432.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.2583, allocations: 1.891 kB / 432.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.2584, allocations: 20.77 kB / 432.4 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.2584, allocations: 10.44 kB / 432.4 MB, free: 7.844 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: 23 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001415/0.2586, allocations: 220.4 kB / 432.7 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.2586, allocations: 18.75 kB / 432.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.2587, allocations: 29.27 kB / 432.7 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.2587, allocations: 9.219 kB / 432.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2587, allocations: 0.7969 kB / 432.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.2587, allocations: 1.984 kB / 432.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.2589, allocations: 250.9 kB / 433 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2589, allocations: 0 / 433 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.482e-05/0.259, allocations: 9.641 kB / 433 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.259, allocations: 1.344 kB / 433 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.259, allocations: 13.8 kB / 433 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.259, allocations: 0 / 433 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.259, allocations: 0.9688 kB / 433 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006103/0.2596, allocations: 460.4 kB / 433.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.142e-05/0.2597, allocations: 89.75 kB / 433.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.2597, allocations: 11.28 kB / 433.5 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.2598, allocations: 15.31 kB / 433.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.439e-05/0.2599, allocations: 20.02 kB / 433.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.2599, allocations: 9.922 kB / 433.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.297e-05/0.26, allocations: 141.1 kB / 433.7 MB, free: 6.941 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.26, allocations: 1.375 kB / 433.7 MB, free: 6.941 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003397/0.2604, allocations: 87.52 kB / 433.8 MB, free: 6.922 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,patientController.t_on,patientController.t_off,patientController.active,RR.a,RR.b,RR.last,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 14 (dutyCycle.nextEvent,dutyCycle.last,dutyCycle.nextEventScaled,dutyCycle.b,dutyCycle.a,$whenCondition4,RR.nextEvent,RR.last,RR.nextEventScaled,RR.b,RR.a,$whenCondition5,patientController.active,patientController.t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.0008828/0.2613, allocations: 1.028 MB / 434.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004712/0.2618, allocations: 398.4 kB / 435.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2618, allocations: 0 / 435.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000237/0.262, allocations: 288.5 kB / 435.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.2622, allocations: 22.31 kB / 435.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.2648, allocations: 2.42 MB / 437.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.2649, allocations: 0.7234 MB / 438.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.701e-05/0.265, allocations: 7.75 kB / 438.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.857e-05/0.265, allocations: 41.61 kB / 438.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2651, allocations: 1.188 kB / 438.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03737/0.3024, allocations: 4.419 MB / 443.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.856/9.158, allocations: 6.219 kB / 443.1 MB, free: 2.688 MB / 318.1 MB (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController1_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1)