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.0009823/0.0009821, allocations: 100 kB / 15.05 MB, free: 1.105 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.0009283/0.0009284, allocations: 177.3 kB / 15.95 MB, free: 216 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.274/1.274, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008204/0.008204, allocations: 1.92 MB / 272.3 MB, free: 3.402 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.0004423/0.0004425, allocations: 19.98 kB / 330.9 MB, free: 33.37 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07748/0.07793, allocations: 48.11 MB / 379 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001518/0.07948, allocations: 1.211 MB / 380.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.08054, allocations: 0.6844 MB / 380.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.793e-05/0.08064, allocations: 3.938 kB / 380.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.08075, allocations: 43.92 kB / 380.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.08087, allocations: 67.83 kB / 381 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004913/0.08137, allocations: 111.7 kB / 381.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001576/0.08153, allocations: 91.81 kB / 381.2 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.995e-05/0.08162, allocations: 15.98 kB / 381.2 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.08175, allocations: 63.81 kB / 381.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.0819, allocations: 87.77 kB / 381.3 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.08193, allocations: 4 kB / 381.3 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/0.08212, allocations: 131.9 kB / 381.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.128e-05/0.08218, allocations: 27.91 kB / 381.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.543e-05/0.08226, allocations: 53.62 kB / 381.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002093/0.08247, allocations: 152 kB / 381.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.08248, allocations: 0 / 381.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.08249, allocations: 0 / 381.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.08251, allocations: 0 / 381.7 MB, free: 14.45 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006848/0.0832, allocations: 0.5058 MB / 382.2 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.08323, allocations: 8.031 kB / 382.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.674e-05/0.0833, allocations: 19.8 kB / 382.2 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.08351, allocations: 203.6 kB / 382.4 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.08358, allocations: 33.66 kB / 382.5 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.08361, allocations: 16 kB / 382.5 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002378/0.08385, allocations: 133.5 kB / 382.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.08387, allocations: 0 / 382.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.08389, allocations: 4 kB / 382.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.0839, allocations: 0 / 382.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.08409, allocations: 99.92 kB / 382.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004794/0.08457, allocations: 372.6 kB / 383.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.08482, allocations: 142.5 kB / 383.2 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.08484, allocations: 3.938 kB / 383.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/0.08518, allocations: 241.1 kB / 383.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.08519, allocations: 0 / 383.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007467/0.08595, allocations: 0.6128 MB / 384.1 MB, free: 11.83 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.08602, allocations: 114.9 kB / 384.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.08618, allocations: 195.2 kB / 384.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.08621, allocations: 33.7 kB / 384.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.51e-05/0.08627, allocations: 100.6 kB / 384.5 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.859e-05/0.08633, allocations: 55.28 kB / 384.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-06/0.08634, allocations: 4 kB / 384.6 MB, free: 11.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.08646, allocations: 326.8 kB / 384.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.0866, allocations: 88.19 kB / 385 MB, free: 10.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.08673, allocations: 92.34 kB / 385.1 MB, free: 10.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.08689, allocations: 141.5 kB / 385.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.0869, allocations: 0 / 385.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004419/0.08735, allocations: 377 kB / 385.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.811e-05/0.08741, allocations: 74.36 kB / 385.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.08742, allocations: 3.938 kB / 385.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.08744, allocations: 3.984 kB / 385.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.607e-05/0.08754, allocations: 20 kB / 385.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.08755, allocations: 0 / 385.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.08768, allocations: 27.84 kB / 385.7 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.08771, allocations: 8 kB / 385.7 MB, free: 10.11 MB / 286.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 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,$PRE.patientController.t_on,patientController.t_on,$PRE.patientController.t_off,patientController.t_off,$PRE.patientController.active,patientController.active,RR.a,RR.b,RR.last,$PRE.RR.nextEvent,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,$PRE.dutyCycle.nextEvent,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001649/0.08788, allocations: 218.9 kB / 385.9 MB, free: 9.871 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.08791, allocations: 19.81 kB / 385.9 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.424e-05/0.08796, allocations: 21.88 kB / 386 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.08796, allocations: 7.938 kB / 386 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.08797, allocations: 0 / 386 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.08798, allocations: 3.984 kB / 386 MB, free: 9.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.08818, allocations: 253.4 kB / 386.2 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.08819, allocations: 0 / 386.2 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.397e-05/0.08825, allocations: 15.98 kB / 386.2 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.08826, allocations: 0 / 386.2 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.08828, allocations: 4 kB / 386.2 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.08829, allocations: 0 / 386.2 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.08829, allocations: 0 / 386.2 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005521/0.08885, allocations: 471.8 kB / 386.7 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.08891, allocations: 96.83 kB / 386.8 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.08896, allocations: 4 kB / 386.8 MB, free: 8.895 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.08907, allocations: 19.98 kB / 386.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.983e-05/0.08914, allocations: 19.97 kB / 386.8 MB, free: 8.855 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.08917, allocations: 8 kB / 386.8 MB, free: 8.848 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.95e-05/0.08928, allocations: 139.2 kB / 387 MB, free: 8.711 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08929, allocations: 3.938 kB / 387 MB, free: 8.707 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002799/0.08957, allocations: 79.92 kB / 387.1 MB, free: 8.629 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000218/0.0898, allocations: 155.1 kB / 387.2 MB, free: 8.469 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004826/0.09029, allocations: 402.6 kB / 387.6 MB, free: 8.051 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.0903, allocations: 0 / 387.6 MB, free: 8.051 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002708/0.09058, allocations: 286.7 kB / 387.9 MB, free: 7.746 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.09075, allocations: 15.94 kB / 387.9 MB, free: 7.73 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.0913, allocations: 370.1 kB / 388.3 MB, free: 7.344 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.0916, allocations: 0.7319 MB / 389 MB, free: 6.586 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.286e-05/0.09165, allocations: 8.547 kB / 389 MB, free: 6.578 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.67e-05/0.09168, allocations: 11.44 kB / 389 MB, free: 6.566 MB / 286.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09168, allocations: 0 / 389 MB, free: 6.566 MB / 286.1 MB Notification: Performance of Templates: time 0.005179/0.09687, allocations: 2.335 MB / 391.3 MB, free: 4.23 MB / 286.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: