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.001384/0.001384, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001582/0.001582, allocations: 212.9 kB / 22.24 MB, free: 5.242 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.466/1.466, allocations: 207.7 MB / 233.1 MB, free: 9.793 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.009773/0.009773, allocations: 1.966 MB / 287.3 MB, free: 3.672 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.002321/0.002321, allocations: 73.25 kB / 402.3 MB, free: 50.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08976/0.09208, allocations: 49.7 MB / 452 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002341/0.09442, allocations: 1.506 MB / 453.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.09546, allocations: 0.6918 MB / 454.2 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.643e-05/0.09553, allocations: 3.938 kB / 454.2 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.09566, allocations: 47.86 kB / 454.2 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.671e-05/0.09576, allocations: 75.72 kB / 454.3 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.09629, allocations: 167.6 kB / 454.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.09646, allocations: 155.6 kB / 454.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.438e-05/0.09654, allocations: 11.94 kB / 454.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.09665, allocations: 83.73 kB / 454.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.09681, allocations: 111.7 kB / 454.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.09684, allocations: 8 kB / 454.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.09702, allocations: 143.9 kB / 455 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.022e-05/0.09708, allocations: 31.86 kB / 455 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.796e-05/0.09715, allocations: 55.66 kB / 455 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.09739, allocations: 227.3 kB / 455.3 MB, free: 2.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.0974, allocations: 0 / 455.3 MB, free: 2.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.0974, allocations: 0 / 455.3 MB, free: 2.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.0974, allocations: 0 / 455.3 MB, free: 2.152 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.0006724/0.09808, allocations: 464.8 kB / 455.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.09811, allocations: 11.98 kB / 455.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.074e-05/0.09817, allocations: 16.84 kB / 455.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.09841, allocations: 172.5 kB / 455.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.09847, allocations: 59.97 kB / 456 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.0985, allocations: 8.375 kB / 456 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.09875, allocations: 201.1 kB / 456.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.09876, allocations: 0 / 456.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.09878, allocations: 3.984 kB / 456.2 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.09878, allocations: 8 kB / 456.2 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.09897, allocations: 151.3 kB / 456.3 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.0994, allocations: 292.3 kB / 456.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002443/0.09965, allocations: 174 kB / 456.8 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.09978, allocations: 148.2 kB / 456.9 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.0998, allocations: 0 / 456.9 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/0.1001, allocations: 321.9 kB / 457.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.626e-06/0.1001, allocations: 3.984 kB / 457.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009127/0.1011, allocations: 0.57 MB / 457.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.1012, allocations: 118.8 kB / 457.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.1013, allocations: 183.3 kB / 458.1 MB, free: 15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.1014, allocations: 33.7 kB / 458.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/0.1015, allocations: 108.5 kB / 458.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.504e-05/0.1015, allocations: 59.52 kB / 458.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.776e-05/0.1016, allocations: 49.7 kB / 458.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1018, allocations: 330.8 kB / 458.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.102, allocations: 155.6 kB / 458.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.1022, allocations: 147.8 kB / 459 MB, free: 14.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.1026, allocations: 297.7 kB / 459.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1026, allocations: 0 / 459.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006579/0.1032, allocations: 460.5 kB / 459.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.9e-05/0.1033, allocations: 67.39 kB / 459.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1033, allocations: 0 / 459.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.1033, allocations: 8 kB / 459.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.1035, allocations: 19.92 kB / 459.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1035, allocations: 0 / 459.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.1036, allocations: 23.94 kB / 459.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.1036, allocations: 4 kB / 459.8 MB, free: 13.16 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.0002152/0.1038, allocations: 218.9 kB / 460.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.1039, allocations: 19.91 kB / 460.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.874e-05/0.1039, allocations: 17.95 kB / 460.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/0.1039, allocations: 8 kB / 460.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1039, allocations: 0 / 460.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1039, allocations: 0 / 460.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.1041, allocations: 181 kB / 460.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1041, allocations: 0 / 460.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.907e-05/0.1042, allocations: 15.92 kB / 460.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1042, allocations: 3.938 kB / 460.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.1042, allocations: 12 kB / 460.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1042, allocations: 0 / 460.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1042, allocations: 0 / 460.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007309/0.1049, allocations: 0.5112 MB / 460.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.006e-05/0.105, allocations: 23.83 kB / 460.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.105, allocations: 4 kB / 460.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.1051, allocations: 15.98 kB / 460.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.391e-05/0.1052, allocations: 19.97 kB / 460.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.1052, allocations: 12 kB / 460.9 MB, free: 12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001267/0.1054, allocations: 131.2 kB / 461 MB, free: 11.87 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1054, allocations: 4 kB / 461 MB, free: 11.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003163/0.1057, allocations: 75.89 kB / 461.1 MB, free: 11.79 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.0003132/0.106, allocations: 162.8 kB / 461.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006746/0.1067, allocations: 465.5 kB / 461.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1067, allocations: 3.938 kB / 461.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003566/0.107, allocations: 290 kB / 462 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.1073, allocations: 23.92 kB / 462 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006876/0.1079, allocations: 402.4 kB / 462.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001216/0.1081, allocations: 118.4 kB / 462.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.437e-05/0.1081, allocations: 4.5 kB / 462.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.1081, allocations: 11.44 kB / 462.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1081, allocations: 3.938 kB / 462.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of Templates: time 0.007675/0.1158, allocations: 2.871 MB / 465.4 MB, free: 7.301 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: 4.752502724528313] Failed to read output from testmodel.py, exit status != 0: 0.12454429641366005 0.14118444200000002 0.040254463000000004 Calling exit ...