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: translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009468/0.0009469, allocations: 105.7 kB / 16.41 MB, free: 6.492 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.0009146/0.0009146, allocations: 185.5 kB / 17.34 MB, free: 5.742 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.116/1.116, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007191/0.007191, allocations: 1.943 MB / 272.5 MB, free: 10.05 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.001364/0.001364, allocations: 62.84 kB / 378.9 MB, free: 51.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06108/0.06246, allocations: 47.15 MB / 426 MB, free: 19.94 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002012/0.06449, allocations: 1.515 MB / 427.6 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008891/0.0654, allocations: 0.7448 MB / 428.3 MB, free: 17.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.235e-05/0.06548, allocations: 0 / 428.3 MB, free: 17.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.06558, allocations: 59.8 kB / 428.4 MB, free: 17.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.699e-05/0.06568, allocations: 51.8 kB / 428.4 MB, free: 17.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005065/0.06619, allocations: 171.5 kB / 428.6 MB, free: 17.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.06636, allocations: 171.6 kB / 428.7 MB, free: 17.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.11e-05/0.06645, allocations: 12 kB / 428.8 MB, free: 17.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.864e-05/0.06655, allocations: 79.73 kB / 428.8 MB, free: 17.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.06669, allocations: 111.7 kB / 428.9 MB, free: 17.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.06672, allocations: 11.94 kB / 429 MB, free: 17.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001603/0.06689, allocations: 155.8 kB / 429.1 MB, free: 16.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.292e-05/0.06695, allocations: 35.89 kB / 429.1 MB, free: 16.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.944e-05/0.06701, allocations: 63.66 kB / 429.2 MB, free: 16.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.06722, allocations: 227.9 kB / 429.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.06723, allocations: 0 / 429.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.06724, allocations: 0 / 429.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.06725, allocations: 0 / 429.4 MB, free: 16.54 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.0005858/0.06784, allocations: 0.5255 MB / 430 MB, free: 15.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.912e-05/0.06787, allocations: 11.89 kB / 430 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.06793, allocations: 16.83 kB / 430 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.06814, allocations: 224.6 kB / 430.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.06819, allocations: 30.27 kB / 430.2 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.889e-05/0.06821, allocations: 16.36 kB / 430.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.06842, allocations: 135.1 kB / 430.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.06844, allocations: 3.984 kB / 430.4 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.06846, allocations: 7.984 kB / 430.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.06847, allocations: 0 / 430.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.06862, allocations: 87.95 kB / 430.5 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000376/0.069, allocations: 372.5 kB / 430.8 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.06921, allocations: 138.6 kB / 431 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.06933, allocations: 104.8 kB / 431.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.06935, allocations: 0 / 431.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002307/0.06958, allocations: 234.5 kB / 431.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.06959, allocations: 0 / 431.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005402/0.07014, allocations: 452.8 kB / 431.7 MB, free: 14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.07019, allocations: 114.8 kB / 431.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.392e-05/0.07029, allocations: 183.3 kB / 432 MB, free: 13.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.07031, allocations: 29.7 kB / 432.1 MB, free: 13.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.07035, allocations: 116.5 kB / 432.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.07039, allocations: 55.28 kB / 432.2 MB, free: 13.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.509e-05/0.07045, allocations: 53.64 kB / 432.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.11e-05/0.0705, allocations: 334.8 kB / 432.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.07062, allocations: 88.19 kB / 432.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.07073, allocations: 81.38 kB / 432.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.07096, allocations: 293.7 kB / 433.1 MB, free: 12.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.07097, allocations: 0 / 433.1 MB, free: 12.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003513/0.07133, allocations: 377 kB / 433.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.07137, allocations: 71.39 kB / 433.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.07138, allocations: 11.88 kB / 433.5 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.0714, allocations: 3.984 kB / 433.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.904e-05/0.07149, allocations: 15.94 kB / 433.5 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.07151, allocations: 0 / 433.5 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.07162, allocations: 23.89 kB / 433.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.07164, allocations: 8 kB / 433.6 MB, free: 12.07 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.0001083/0.07175, allocations: 218.9 kB / 433.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.07179, allocations: 19.81 kB / 433.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.07182, allocations: 17.88 kB / 433.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.07183, allocations: 4 kB / 433.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.07184, allocations: 0 / 433.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.07184, allocations: 3.938 kB / 433.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.07197, allocations: 257.3 kB / 434.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.07198, allocations: 0 / 434.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.641e-05/0.07203, allocations: 15.98 kB / 434.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.07204, allocations: 0 / 434.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.07206, allocations: 8 kB / 434.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.07206, allocations: 4 kB / 434.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.07207, allocations: 0 / 434.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004176/0.07249, allocations: 452.1 kB / 434.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.41e-05/0.07253, allocations: 92.86 kB / 434.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.07256, allocations: 8 kB / 434.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.22e-05/0.07266, allocations: 15.98 kB / 434.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.088e-05/0.07272, allocations: 31.89 kB / 434.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.07275, allocations: 8 kB / 434.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.335e-05/0.07282, allocations: 139.2 kB / 434.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07282, allocations: 3.938 kB / 434.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.07306, allocations: 76 kB / 434.9 MB, free: 10.59 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.0001561/0.07323, allocations: 155.8 kB / 435.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003665/0.0736, allocations: 403 kB / 435.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.07361, allocations: 4 kB / 435.5 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.0738, allocations: 282.6 kB / 435.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/0.074, allocations: 16.31 kB / 435.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004302/0.07444, allocations: 376.7 kB / 436.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.07455, allocations: 0.7238 MB / 436.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.07459, allocations: 19.44 kB / 436.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.07459, allocations: 0 / 436.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of Templates: time 0.003183/0.07778, allocations: 2.472 MB / 439.3 MB, free: 6.043 MB / 318.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile (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 & ./MEV_MEV.Test.TestPatientController1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1)