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.001019/0.001019, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0011/0.0011, allocations: 189.9 kB / 16.13 MB, free: 6.652 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.29/1.29, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009215/0.009215, allocations: 1.939 MB / 271.3 MB, free: 3.527 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.001231/0.001231, allocations: 59.92 kB / 329.1 MB, free: 33.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07912/0.08036, allocations: 47.14 MB / 376.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002356/0.08276, allocations: 1.58 MB / 377.9 MB, free: 492 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.08384, allocations: 0.7773 MB / 378.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.116e-05/0.08391, allocations: 0 / 378.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.08404, allocations: 59.84 kB / 378.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.52e-05/0.08413, allocations: 63.78 kB / 378.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.08455, allocations: 123.8 kB / 378.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.0847, allocations: 143.6 kB / 379 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.03e-05/0.08479, allocations: 15.98 kB / 379 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.771e-05/0.08488, allocations: 67.75 kB / 379.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.08502, allocations: 99.7 kB / 379.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.08506, allocations: 8 kB / 379.2 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.08524, allocations: 147.9 kB / 379.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.001e-05/0.08531, allocations: 31.91 kB / 379.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.878e-05/0.0854, allocations: 63.62 kB / 379.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.08565, allocations: 227.6 kB / 379.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.08566, allocations: 0 / 379.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.08567, allocations: 0 / 379.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.08568, allocations: 0 / 379.7 MB, free: 14.66 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.0006885/0.08637, allocations: 0.5256 MB / 380.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.754e-05/0.08641, allocations: 8.031 kB / 380.2 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.314e-05/0.08647, allocations: 16.75 kB / 380.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.08667, allocations: 212.8 kB / 380.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.301e-05/0.08673, allocations: 38.25 kB / 380.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.08676, allocations: 12.38 kB / 380.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.087, allocations: 137.7 kB / 380.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.08702, allocations: 0 / 380.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.08704, allocations: 8 kB / 380.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.08705, allocations: 0 / 380.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.08724, allocations: 87.95 kB / 380.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004546/0.0877, allocations: 376.5 kB / 381.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.08795, allocations: 138.5 kB / 381.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.08811, allocations: 100.8 kB / 381.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-06/0.08812, allocations: 0 / 381.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003243/0.08845, allocations: 234.8 kB / 381.5 MB, free: 12.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.352e-06/0.08847, allocations: 0 / 381.5 MB, free: 12.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006772/0.08915, allocations: 466.6 kB / 382 MB, free: 12.13 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.08921, allocations: 114.8 kB / 382.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.08935, allocations: 179.3 kB / 382.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.08938, allocations: 37.69 kB / 382.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.335e-05/0.08944, allocations: 108.5 kB / 382.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.639e-05/0.0895, allocations: 59.19 kB / 382.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.616e-05/0.08957, allocations: 49.7 kB / 382.5 MB, free: 11.54 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.08968, allocations: 334.8 kB / 382.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.08982, allocations: 84.19 kB / 382.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.08996, allocations: 84.44 kB / 383 MB, free: 11.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.09027, allocations: 293.7 kB / 383.3 MB, free: 10.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.09028, allocations: 0 / 383.3 MB, free: 10.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004444/0.09073, allocations: 377 kB / 383.7 MB, free: 10.34 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.834e-05/0.09079, allocations: 79.94 kB / 383.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.0908, allocations: 0 / 383.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.09082, allocations: 4 kB / 383.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.729e-05/0.09093, allocations: 12 kB / 383.8 MB, free: 10.24 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.09094, allocations: 0 / 383.8 MB, free: 10.24 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.09106, allocations: 19.89 kB / 383.8 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.09109, allocations: 15.92 kB / 383.8 MB, free: 10.2 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 (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.0001518/0.09125, allocations: 222.9 kB / 384 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.09129, allocations: 19.81 kB / 384 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.224e-05/0.09133, allocations: 21.86 kB / 384.1 MB, free: 9.922 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.09133, allocations: 0 / 384.1 MB, free: 9.922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.09134, allocations: 4 kB / 384.1 MB, free: 9.918 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.09135, allocations: 3.984 kB / 384.1 MB, free: 9.914 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.09153, allocations: 249.3 kB / 384.3 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.09154, allocations: 0 / 384.3 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.259e-05/0.0916, allocations: 11.98 kB / 384.3 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.09161, allocations: 0 / 384.3 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.09164, allocations: 12 kB / 384.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.09165, allocations: 4 kB / 384.3 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.09165, allocations: 3.938 kB / 384.3 MB, free: 9.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005459/0.0922, allocations: 456.4 kB / 384.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.09226, allocations: 100.9 kB / 384.9 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.977e-05/0.0923, allocations: 8 kB / 384.9 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.09241, allocations: 11.98 kB / 384.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.09249, allocations: 23.97 kB / 384.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.09252, allocations: 12 kB / 384.9 MB, free: 8.941 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.09263, allocations: 135.2 kB / 385.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09264, allocations: 0 / 385.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002652/0.09291, allocations: 76 kB / 385.1 MB, free: 8.734 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 (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.000208/0.09312, allocations: 171.4 kB / 385.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000461/0.09359, allocations: 390.7 kB / 385.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.09361, allocations: 4 kB / 385.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.09388, allocations: 286.6 kB / 386 MB, free: 7.844 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.09411, allocations: 23.98 kB / 386 MB, free: 7.82 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005276/0.09465, allocations: 371.8 kB / 386.4 MB, free: 7.438 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.09491, allocations: 0.7318 MB / 387.1 MB, free: 6.68 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.596e-05/0.09496, allocations: 12.55 kB / 387.1 MB, free: 6.668 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.09499, allocations: 11.44 kB / 387.1 MB, free: 6.656 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.095, allocations: 0 / 387.1 MB, free: 6.656 MB / 286.1 MB Notification: Performance of Templates: time 0.00449/0.09949, allocations: 2.396 MB / 389.5 MB, free: 4.258 MB / 286.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)