Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.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.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",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.007076/0.007076, allocations: 102.6 kB / 15.73 MB, free: 6.496 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.001756/0.001756, allocations: 195.7 kB / 16.67 MB, free: 6.379 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.324/1.324, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008675/0.008675, allocations: 1.932 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.001505/0.001505, allocations: 72.12 kB / 377.8 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07749/0.079, allocations: 47.11 MB / 424.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002807/0.08185, allocations: 1.533 MB / 426.4 MB, free: 156 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1608/0.2427, allocations: 0.7361 MB / 427.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.138e-05/0.2428, allocations: 5.094 kB / 427.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.243, allocations: 61 kB / 427.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.2431, allocations: 71.95 kB / 427.3 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000693/0.2438, allocations: 170.9 kB / 427.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.2441, allocations: 167.6 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.2442, allocations: 18.47 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.2445, allocations: 85.67 kB / 427.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000261/0.2447, allocations: 108 kB / 427.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.2448, allocations: 10.53 kB / 427.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003093/0.2451, allocations: 157.2 kB / 428 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.623e-05/0.2452, allocations: 36.73 kB / 428 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.487e-05/0.2453, allocations: 65.39 kB / 428.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003985/0.2457, allocations: 239.4 kB / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2457, allocations: 0 / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2457, allocations: 2.219 kB / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2457, allocations: 0 / 428.3 MB, free: 10.38 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.0007556/0.2465, allocations: 0.5277 MB / 428.8 MB, free: 9.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2465, allocations: 17.11 kB / 428.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.583e-05/0.2466, allocations: 40.8 kB / 428.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.68e-05/0.2466, allocations: 23.59 kB / 428.9 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.2469, allocations: 227 kB / 429.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.247, allocations: 35.81 kB / 429.2 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.247, allocations: 6.812 kB / 429.2 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.2473, allocations: 145.6 kB / 429.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.2473, allocations: 3.234 kB / 429.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.2473, allocations: 2.094 kB / 429.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2473, allocations: 3.75 kB / 429.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.2475, allocations: 96.91 kB / 429.4 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.248, allocations: 371.6 kB / 429.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002691/0.2483, allocations: 145.7 kB / 429.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.2485, allocations: 103.7 kB / 430 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.2485, allocations: 5.094 kB / 430 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003169/0.2488, allocations: 237.5 kB / 430.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.2488, allocations: 0 / 430.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000716/0.2496, allocations: 474.1 kB / 430.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.2496, allocations: 114.5 kB / 430.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.2498, allocations: 203.2 kB / 431 MB, free: 8.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.2498, allocations: 28.83 kB / 431.1 MB, free: 8.738 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.2499, allocations: 109.5 kB / 431.2 MB, free: 8.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.906e-05/0.2499, allocations: 62.48 kB / 431.2 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.229e-05/0.25, allocations: 42.41 kB / 431.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.953e-05/0.2501, allocations: 335.1 kB / 431.6 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.2502, allocations: 89.58 kB / 431.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.2504, allocations: 91.44 kB / 431.8 MB, free: 8.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.2507, allocations: 307.2 kB / 432.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2507, allocations: 0 / 432.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004791/0.2512, allocations: 390.8 kB / 432.5 MB, free: 7.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.2512, allocations: 69.62 kB / 432.5 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.2513, allocations: 1.156 kB / 432.5 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.2513, allocations: 1.031 kB / 432.5 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.2514, allocations: 16.39 kB / 432.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.2514, allocations: 1.281 kB / 432.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.2515, allocations: 26.66 kB / 432.6 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.2516, allocations: 10 kB / 432.6 MB, free: 7.84 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.0001342/0.2517, allocations: 216.2 kB / 432.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/0.2518, allocations: 27.34 kB / 432.8 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.2518, allocations: 21.17 kB / 432.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2518, allocations: 1.812 kB / 432.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2518, allocations: 0 / 432.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2518, allocations: 6.078 kB / 432.9 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.252, allocations: 256.4 kB / 433.1 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.252, allocations: 5.156 kB / 433.1 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.416e-05/0.2521, allocations: 14.19 kB / 433.1 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2521, allocations: 1.219 kB / 433.1 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.2521, allocations: 9.672 kB / 433.1 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2521, allocations: 5.891 kB / 433.1 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2521, allocations: 0 / 433.1 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005914/0.2527, allocations: 470.6 kB / 433.6 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.628e-05/0.2528, allocations: 97.03 kB / 433.7 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.2528, allocations: 10.84 kB / 433.7 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.2529, allocations: 12.16 kB / 433.7 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.346e-05/0.253, allocations: 16.81 kB / 433.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.253, allocations: 12.64 kB / 433.8 MB, free: 7.027 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001071/0.2532, allocations: 149.2 kB / 433.9 MB, free: 6.934 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2532, allocations: 0 / 433.9 MB, free: 6.934 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.2535, allocations: 81.39 kB / 434 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.0009285/0.2545, allocations: 1.046 MB / 435 MB, free: 6.152 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005159/0.255, allocations: 408.9 kB / 435.4 MB, free: 5.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.255, allocations: 5.156 kB / 435.4 MB, free: 5.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.2553, allocations: 283.8 kB / 435.7 MB, free: 5.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.2555, allocations: 17.75 kB / 435.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.2582, allocations: 2.507 MB / 438.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.2584, allocations: 0.7282 MB / 439 MB, free: 3.398 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.449e-05/0.2584, allocations: 16.09 kB / 439 MB, free: 3.387 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.505e-05/0.2585, allocations: 45.84 kB / 439 MB, free: 3.352 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2585, allocations: 3.938 kB / 439 MB, free: 3.348 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.2806, allocations: 4.609 MB / 443.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.558/7.839, allocations: 1.031 kB / 443.6 MB, free: 2.621 MB / 318.1 MB (rm -f MEV_MEV.Test.TestPatientController2.pipe ; mkfifo MEV_MEV.Test.TestPatientController2.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController2.pipe >> ../files/MEV_MEV.Test.TestPatientController2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController2_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1)