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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 92.7 kB / 19.44 MB, free: 324 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 161.7 kB / 22.75 MB, free: 1.656 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 158.6 MB / 184.6 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008323/0.008323, allocations: 1.443 MB / 238.3 MB, free: 13.73 MB / 234.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 303.9 MB, free: 61.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.745e-05/2.964e-05, allocations: 3.641 kB / 303.9 MB, free: 61.31 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.003331/0.003361, allocations: 1.514 MB / 305.4 MB, free: 60.29 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.005002, allocations: 0.6955 MB / 306.1 MB, free: 59.83 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.00512, allocations: 4.906 kB / 306.1 MB, free: 59.83 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.005335, allocations: 64.55 kB / 306.2 MB, free: 59.82 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/0.005546, allocations: 73.36 kB / 306.2 MB, free: 59.8 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000875/0.006421, allocations: 161.3 kB / 306.4 MB, free: 59.73 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.00675, allocations: 165 kB / 306.6 MB, free: 59.67 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.522e-05/0.006835, allocations: 10.33 kB / 306.6 MB, free: 59.67 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.007121, allocations: 108.2 kB / 306.7 MB, free: 59.63 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.007448, allocations: 109.4 kB / 306.8 MB, free: 59.61 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.007489, allocations: 9.688 kB / 306.8 MB, free: 59.61 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003689/0.007858, allocations: 151.8 kB / 306.9 MB, free: 59.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.236e-05/0.00794, allocations: 35.55 kB / 307 MB, free: 59.56 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.008058, allocations: 48.66 kB / 307 MB, free: 59.54 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005621/0.00862, allocations: 271.5 kB / 307.3 MB, free: 59.44 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.008624, allocations: 0 / 307.3 MB, free: 59.44 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.008625, allocations: 0 / 307.3 MB, free: 59.44 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.008635, allocations: 4.656 kB / 307.3 MB, free: 59.43 MB / 282.7 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.001004/0.009639, allocations: 466 kB / 307.7 MB, free: 59.03 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.009683, allocations: 13.61 kB / 307.8 MB, free: 59.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.009804, allocations: 24.69 kB / 307.8 MB, free: 59.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003604/0.01016, allocations: 162.5 kB / 307.9 MB, free: 58.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.295e-05/0.01024, allocations: 63.8 kB / 308 MB, free: 58.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.586e-05/0.01027, allocations: 7.531 kB / 308 MB, free: 58.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.01067, allocations: 200.1 kB / 308.2 MB, free: 58.67 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.01068, allocations: 192 / 308.2 MB, free: 58.67 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.0107, allocations: 10.47 kB / 308.2 MB, free: 58.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.01071, allocations: 4.141 kB / 308.2 MB, free: 58.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.01106, allocations: 159 kB / 308.4 MB, free: 58.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005407/0.0116, allocations: 294.3 kB / 308.7 MB, free: 58.33 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/0.01196, allocations: 182.2 kB / 308.8 MB, free: 58.21 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.01218, allocations: 151.2 kB / 309 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.0122, allocations: 9.344 kB / 309 MB, free: 58.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004366/0.01263, allocations: 295.7 kB / 309.3 MB, free: 57.89 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.01263, allocations: 0 / 309.3 MB, free: 57.89 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.001159/0.01379, allocations: 0.5965 MB / 309.9 MB, free: 57.57 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.01385, allocations: 119.8 kB / 310 MB, free: 57.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.01411, allocations: 198.5 kB / 310.2 MB, free: 57.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.01413, allocations: 28.27 kB / 310.2 MB, free: 57.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.0142, allocations: 119.5 kB / 310.3 MB, free: 57.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.876e-05/0.01426, allocations: 52.31 kB / 310.4 MB, free: 57.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.01437, allocations: 45.25 kB / 310.4 MB, free: 57.1 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.827e-05/0.01444, allocations: 331.3 kB / 310.8 MB, free: 56.78 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.01473, allocations: 151.3 kB / 310.9 MB, free: 56.69 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.01498, allocations: 158.9 kB / 311.1 MB, free: 56.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.01532, allocations: 304.2 kB / 311.4 MB, free: 56.4 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.01532, allocations: 0 / 311.4 MB, free: 56.4 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006412/0.01596, allocations: 492.9 kB / 311.8 MB, free: 56.13 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.341e-05/0.01601, allocations: 75.05 kB / 311.9 MB, free: 56.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.01602, allocations: 0 / 311.9 MB, free: 56.06 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.01604, allocations: 1.594 kB / 311.9 MB, free: 56.06 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.01615, allocations: 16.89 kB / 311.9 MB, free: 56.06 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.01616, allocations: 0 / 311.9 MB, free: 56.06 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.0163, allocations: 25.81 kB / 312 MB, free: 56.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.01633, allocations: 7.641 kB / 312 MB, free: 56.05 MB / 282.7 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.0001845/0.01651, allocations: 221.9 kB / 312.2 MB, free: 55.85 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.487e-05/0.0166, allocations: 46.06 kB / 312.2 MB, free: 55.83 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.638e-05/0.01664, allocations: 22.42 kB / 312.2 MB, free: 55.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.01665, allocations: 1.562 kB / 312.2 MB, free: 55.82 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.01665, allocations: 0.6094 kB / 312.2 MB, free: 55.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.01666, allocations: 1.812 kB / 312.3 MB, free: 55.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001824/0.01684, allocations: 172.4 kB / 312.4 MB, free: 55.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.01684, allocations: 0 / 312.4 MB, free: 55.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.885e-05/0.0169, allocations: 11.53 kB / 312.4 MB, free: 55.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.0169, allocations: 5.438 kB / 312.4 MB, free: 55.67 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.01693, allocations: 7.062 kB / 312.4 MB, free: 55.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.01693, allocations: 5.062 kB / 312.4 MB, free: 55.67 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.01693, allocations: 3.938 kB / 312.5 MB, free: 55.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008875/0.01782, allocations: 0.5316 MB / 313 MB, free: 55.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.01786, allocations: 17.42 kB / 313 MB, free: 55.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.825e-05/0.01792, allocations: 12.66 kB / 313 MB, free: 55.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.01809, allocations: 11.33 kB / 313 MB, free: 55.35 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.852e-05/0.01819, allocations: 16.92 kB / 313 MB, free: 55.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.332e-05/0.01823, allocations: 14.5 kB / 313.1 MB, free: 55.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001735/0.0184, allocations: 148 kB / 313.2 MB, free: 55.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.0184, allocations: 0 / 313.2 MB, free: 55.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005607/0.01896, allocations: 86.22 kB / 313.3 MB, free: 55.23 MB / 282.7 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.0004053/0.01937, allocations: 163.7 kB / 313.4 MB, free: 55.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006915/0.02006, allocations: 479.6 kB / 313.9 MB, free: 54.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.02006, allocations: 0.9375 kB / 313.9 MB, free: 54.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003963/0.02046, allocations: 292.4 kB / 314.2 MB, free: 54.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.0208, allocations: 25.97 kB / 314.2 MB, free: 54.56 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009373/0.02174, allocations: 439.7 kB / 314.7 MB, free: 54.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.02188, allocations: 118.2 kB / 314.8 MB, free: 54.2 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.038e-05/0.02193, allocations: 8.047 kB / 314.8 MB, free: 54.2 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.311e-05/0.02197, allocations: 13.97 kB / 314.8 MB, free: 54.19 MB / 282.7 MB Notification: Performance of SimCode: time 3.1e-07/0.02197, allocations: 5.781 kB / 314.8 MB, free: 54.19 MB / 282.7 MB Notification: Performance of Templates: time 0.007864/0.02984, allocations: 2.74 MB / 317.5 MB, free: 51.56 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Test.TestPatientController2.makefile [Timeout 660] (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 & ./MEV_MEV.Test.TestPatientController2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.260979752987623]