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.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.001411/0.001411, allocations: 102.3 kB / 19.7 MB, free: 2.254 MB / 14.72 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.00158/0.00158, allocations: 217.1 kB / 23.01 MB, free: 4.609 MB / 14.72 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.485/1.485, allocations: 207.6 MB / 233.8 MB, free: 9.996 MB / 190.1 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.01644/0.01644, allocations: 1.977 MB / 288 MB, free: 3.852 MB / 222.1 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.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003656/0.003656, allocations: 80.5 kB / 403 MB, free: 50.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0937/0.09736, allocations: 49.71 MB / 452.7 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002664/0.1, allocations: 1.529 MB / 454.3 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1012, allocations: 0.7618 MB / 455 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.946e-05/0.1013, allocations: 0 / 455 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.1014, allocations: 47.81 kB / 455.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.1015, allocations: 63.78 kB / 455.1 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.1022, allocations: 171.6 kB / 455.3 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.1024, allocations: 163.6 kB / 455.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.22e-05/0.1025, allocations: 7.938 kB / 455.5 MB, free: 3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.1026, allocations: 79.8 kB / 455.6 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.1028, allocations: 111.7 kB / 455.7 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.1028, allocations: 15.94 kB / 455.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001966/0.103, allocations: 159.8 kB / 455.8 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.453e-05/0.1031, allocations: 31.91 kB / 455.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.1032, allocations: 63.66 kB / 455.9 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.1035, allocations: 223.2 kB / 456.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1035, allocations: 0 / 456.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1035, allocations: 0 / 456.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1035, allocations: 0 / 456.1 MB, free: 2.328 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.000709/0.1042, allocations: 468.8 kB / 456.6 MB, free: 1.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1042, allocations: 15.98 kB / 456.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/0.1043, allocations: 16.84 kB / 456.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.1045, allocations: 160.6 kB / 456.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.445e-05/0.1046, allocations: 59.97 kB / 456.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.1046, allocations: 8.375 kB / 456.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.1049, allocations: 133.7 kB / 457 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1049, allocations: 0 / 457 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.1049, allocations: 15.98 kB / 457 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1049, allocations: 0 / 457 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.1051, allocations: 91.83 kB / 457.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.1055, allocations: 339.6 kB / 457.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.1057, allocations: 114.6 kB / 457.5 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.1059, allocations: 84.83 kB / 457.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.1059, allocations: 4.031 kB / 457.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.1061, allocations: 242.5 kB / 457.9 MB, free: 460 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.522e-06/0.1061, allocations: 0 / 457.9 MB, free: 460 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006396/0.1068, allocations: 460.9 kB / 458.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.555e-05/0.1069, allocations: 118.8 kB / 458.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.1071, allocations: 183.3 kB / 458.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.804e-05/0.1071, allocations: 29.7 kB / 458.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.237e-05/0.1072, allocations: 108.5 kB / 458.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.054e-05/0.1073, allocations: 59.52 kB / 458.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.593e-05/0.1073, allocations: 45.7 kB / 458.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1075, allocations: 334.8 kB / 459.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.1077, allocations: 88.2 kB / 459.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.1078, allocations: 88.42 kB / 459.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.1082, allocations: 289.7 kB / 459.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1082, allocations: 0 / 459.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005427/0.1087, allocations: 381.1 kB / 460 MB, free: 14.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.975e-05/0.1088, allocations: 71.39 kB / 460.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1088, allocations: 3.938 kB / 460.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1088, allocations: 0 / 460.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.1089, allocations: 23.98 kB / 460.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1089, allocations: 0 / 460.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.1091, allocations: 19.94 kB / 460.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.1091, allocations: 8 kB / 460.1 MB, free: 14.05 MB / 334.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.0002125/0.1093, allocations: 218.8 kB / 460.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.1093, allocations: 23.89 kB / 460.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.869e-05/0.1094, allocations: 21.97 kB / 460.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.1094, allocations: 4 kB / 460.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1094, allocations: 0 / 460.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1094, allocations: 0 / 460.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.1096, allocations: 228.4 kB / 460.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1097, allocations: 4 kB / 460.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-05/0.1097, allocations: 8 kB / 460.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1097, allocations: 3.984 kB / 460.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.1097, allocations: 8 kB / 460.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1097, allocations: 0 / 460.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1097, allocations: 0 / 460.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007056/0.1104, allocations: 464 kB / 461.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.1105, allocations: 23.78 kB / 461.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.1105, allocations: 8 kB / 461.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.1106, allocations: 11.98 kB / 461.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/0.1107, allocations: 19.97 kB / 461.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.1107, allocations: 15.94 kB / 461.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001444/0.1109, allocations: 131.2 kB / 461.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1109, allocations: 4 kB / 461.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.1112, allocations: 79.89 kB / 461.4 MB, free: 12.7 MB / 334.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.0002745/0.1115, allocations: 162.8 kB / 461.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005487/0.112, allocations: 330.6 kB / 461.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.112, allocations: 4 kB / 461.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.1123, allocations: 226.5 kB / 462.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.1125, allocations: 16.5 kB / 462.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007189/0.1133, allocations: 376.7 kB / 462.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.1137, allocations: 0.7239 MB / 463.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.657e-05/0.1137, allocations: 11.44 kB / 463.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1137, allocations: 0 / 463.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of Templates: time 0.005507/0.1192, allocations: 2.459 MB / 465.7 MB, free: 8.289 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Test.TestPatientController1.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.048749768873677] Failed to read output from testmodel.py, exit status != 0: 0.12892691907472908 0.14396850399999994 0.037218168 Calling exit ...