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.001516/0.001516, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001476/0.001476, allocations: 215.4 kB / 22.25 MB, free: 5.113 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.415/1.415, allocations: 207.6 MB / 233 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.00984/0.00984, allocations: 1.973 MB / 287.2 MB, free: 3.859 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.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: 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.00228/0.00228, allocations: 68.8 kB / 402.3 MB, free: 50.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06909/0.07137, allocations: 49.7 MB / 452 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.00247/0.07384, allocations: 1.53 MB / 453.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.07513, allocations: 0.7618 MB / 454.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.07524, allocations: 4 kB / 454.3 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.0754, allocations: 63.78 kB / 454.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.0755, allocations: 71.77 kB / 454.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.07606, allocations: 167.6 kB / 454.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.07626, allocations: 163.6 kB / 454.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.166e-05/0.07634, allocations: 11.92 kB / 454.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.07646, allocations: 87.73 kB / 454.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.07664, allocations: 123.7 kB / 455 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.07666, allocations: 8 kB / 455 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.07684, allocations: 167.8 kB / 455.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.0769, allocations: 27.92 kB / 455.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.988e-05/0.07697, allocations: 71.58 kB / 455.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.07723, allocations: 227.2 kB / 455.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.07723, allocations: 0 / 455.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.07724, allocations: 4 kB / 455.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.07724, allocations: 0 / 455.4 MB, free: 2.273 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.0006775/0.07792, allocations: 478.7 kB / 455.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.07795, allocations: 15.98 kB / 455.9 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.07802, allocations: 16.84 kB / 455.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.07826, allocations: 166.2 kB / 456.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.429e-05/0.07833, allocations: 59.97 kB / 456.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.07835, allocations: 16.36 kB / 456.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.07858, allocations: 141.7 kB / 456.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.07859, allocations: 4 kB / 456.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.0786, allocations: 3.984 kB / 456.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.07861, allocations: 0 / 456.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.07876, allocations: 91.95 kB / 456.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004174/0.07918, allocations: 351.5 kB / 456.8 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.07939, allocations: 122.5 kB / 456.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.07951, allocations: 88.81 kB / 457 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.07952, allocations: 0 / 457 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002575/0.07978, allocations: 242.6 kB / 457.2 MB, free: 360 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.07978, allocations: 4 kB / 457.2 MB, free: 356 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006575/0.08044, allocations: 472.9 kB / 457.7 MB, free: 15.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.842e-05/0.08053, allocations: 110.8 kB / 457.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.08072, allocations: 202.7 kB / 458 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.08075, allocations: 29.7 kB / 458 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.08083, allocations: 112.6 kB / 458.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.0809, allocations: 63.45 kB / 458.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-05/0.08097, allocations: 45.7 kB / 458.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.08114, allocations: 338.8 kB / 458.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.0813, allocations: 84.19 kB / 458.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.08145, allocations: 94.06 kB / 458.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.08183, allocations: 296.8 kB / 459 MB, free: 14.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.08183, allocations: 0 / 459 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005834/0.08242, allocations: 394.5 kB / 459.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.213e-05/0.08248, allocations: 67.39 kB / 459.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.08248, allocations: 4 kB / 459.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.0825, allocations: 7.938 kB / 459.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.08261, allocations: 23.92 kB / 459.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.08262, allocations: 0 / 459.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.08274, allocations: 19.94 kB / 459.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.08276, allocations: 7.984 kB / 459.5 MB, free: 13.88 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.0002066/0.08297, allocations: 218.9 kB / 459.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.083, allocations: 19.91 kB / 459.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.247e-05/0.08306, allocations: 29.95 kB / 459.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.08306, allocations: 0 / 459.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.08306, allocations: 3.938 kB / 459.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.08307, allocations: 0 / 459.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.0833, allocations: 232.4 kB / 460 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.0833, allocations: 0 / 460 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.196e-05/0.08335, allocations: 8 kB / 460 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.08336, allocations: 4 kB / 460 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.08338, allocations: 7.984 kB / 460 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.08338, allocations: 0 / 460 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.08338, allocations: 4 kB / 460 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.08404, allocations: 472 kB / 460.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.08407, allocations: 19.8 kB / 460.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.341e-05/0.08411, allocations: 15.94 kB / 460.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.08422, allocations: 11.98 kB / 460.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.08428, allocations: 23.91 kB / 460.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.0843, allocations: 16 kB / 460.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.08444, allocations: 144.3 kB / 460.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.08444, allocations: 0 / 460.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.08474, allocations: 83.86 kB / 460.8 MB, free: 12.5 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.0002508/0.085, allocations: 158.8 kB / 461 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005278/0.08552, allocations: 342.6 kB / 461.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.08553, allocations: 0 / 461.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.0858, allocations: 238.6 kB / 461.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.08603, allocations: 16 kB / 461.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006358/0.08667, allocations: 367.7 kB / 461.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.08704, allocations: 0.7239 MB / 462.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.399e-05/0.08708, allocations: 12.48 kB / 462.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.168e-05/0.08712, allocations: 11.44 kB / 462.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.08712, allocations: 0 / 462.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of Templates: time 0.006727/0.09384, allocations: 2.746 MB / 465.4 MB, free: 7.797 MB / 334.1 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.269284609006718] Failed to read output from testmodel.py, exit status != 0: 0.10227957996539772 0.11688735900000001 0.036595189 Calling exit ...