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.0008673/0.0008673, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008205/0.0008205, allocations: 174.3 kB / 23.21 MB, free: 1.352 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 0.8314/0.8314, allocations: 158.6 MB / 185 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] 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.005907/0.005907, allocations: 1.436 MB / 238.7 MB, free: 13.93 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.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: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 353.7 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.772e-05/1.969e-05, allocations: 2.281 kB / 353.7 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.00143/0.001449, allocations: 1.502 MB / 355.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007087/0.002158, allocations: 0.6961 MB / 355.9 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.68e-05/0.002215, allocations: 3.938 kB / 355.9 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.00233, allocations: 51.86 kB / 356 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.352e-05/0.002403, allocations: 67.66 kB / 356 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.002814, allocations: 167.5 kB / 356.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.002953, allocations: 163.6 kB / 356.4 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.268e-05/0.003036, allocations: 11.98 kB / 356.4 MB, free: 12.72 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.606e-05/0.003132, allocations: 99.84 kB / 356.5 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.003259, allocations: 99.78 kB / 356.6 MB, free: 12.53 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.003279, allocations: 12 kB / 356.6 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.0034, allocations: 139.9 kB / 356.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.208e-05/0.003452, allocations: 43.83 kB / 356.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.832e-05/0.003501, allocations: 39.92 kB / 356.8 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.003726, allocations: 271.3 kB / 357.1 MB, free: 12.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.003728, allocations: 0 / 357.1 MB, free: 12.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.003729, allocations: 0 / 357.1 MB, free: 12.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.003733, allocations: 0 / 357.1 MB, free: 12.03 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.0004822/0.004215, allocations: 456.8 kB / 357.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.004246, allocations: 11.98 kB / 357.5 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.004291, allocations: 24.84 kB / 357.5 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.004449, allocations: 158.2 kB / 357.7 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.668e-05/0.004496, allocations: 67.95 kB / 357.8 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.00451, allocations: 8.312 kB / 357.8 MB, free: 11.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.0047, allocations: 197.5 kB / 358 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.004708, allocations: 192 / 358 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.004721, allocations: 8.125 kB / 358 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.004725, allocations: 4 kB / 358 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.004838, allocations: 151.3 kB / 358.1 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002918/0.00513, allocations: 292.4 kB / 358.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.005286, allocations: 177.9 kB / 358.6 MB, free: 10.35 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.316e-05/0.00537, allocations: 144.2 kB / 358.7 MB, free: 10.19 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.005379, allocations: 3.938 kB / 358.7 MB, free: 10.19 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001882/0.005567, allocations: 298.2 kB / 359 MB, free: 9.859 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.102e-06/0.005569, allocations: 0 / 359 MB, free: 9.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004297/0.005998, allocations: 0.584 MB / 359.6 MB, free: 9.234 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.006031, allocations: 118.8 kB / 359.7 MB, free: 9.094 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.554e-05/0.006107, allocations: 181.9 kB / 359.9 MB, free: 8.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.006119, allocations: 33.7 kB / 359.9 MB, free: 8.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/0.00615, allocations: 104.6 kB / 360 MB, free: 8.766 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.006181, allocations: 59.52 kB / 360.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.27e-05/0.006224, allocations: 45.7 kB / 360.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.229e-05/0.006256, allocations: 330.8 kB / 360.5 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.9e-05/0.006345, allocations: 147.6 kB / 360.6 MB, free: 8.168 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.213e-05/0.006427, allocations: 156 kB / 360.8 MB, free: 8.004 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.006595, allocations: 296.7 kB / 361.1 MB, free: 7.688 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.006597, allocations: 0 / 361.1 MB, free: 7.688 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000262/0.006859, allocations: 468.3 kB / 361.5 MB, free: 7.199 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.006887, allocations: 74.34 kB / 361.6 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.006891, allocations: 0 / 361.6 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.006902, allocations: 4 kB / 361.6 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.145e-05/0.006963, allocations: 16 kB / 361.6 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.006968, allocations: 3.938 kB / 361.6 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.091e-05/0.007029, allocations: 27.88 kB / 361.6 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.00704, allocations: 11.98 kB / 361.6 MB, free: 7.055 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 7.853e-05/0.007119, allocations: 215.2 kB / 361.9 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.007136, allocations: 23.84 kB / 361.9 MB, free: 6.797 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.16e-05/0.007158, allocations: 21.95 kB / 361.9 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.007159, allocations: 4 kB / 361.9 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.007163, allocations: 0 / 361.9 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.007166, allocations: 0 / 361.9 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.699e-05/0.007243, allocations: 165.2 kB / 362.1 MB, free: 6.586 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.007243, allocations: 4 kB / 362.1 MB, free: 6.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-05/0.007264, allocations: 8 kB / 362.1 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.007266, allocations: 7.938 kB / 362.1 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.007279, allocations: 11.98 kB / 362.1 MB, free: 6.555 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.007279, allocations: 3.938 kB / 362.1 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.00728, allocations: 0 / 362.1 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.007593, allocations: 0.504 MB / 362.6 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.296e-05/0.007606, allocations: 23.78 kB / 362.6 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.00763, allocations: 7.984 kB / 362.6 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.644e-05/0.007676, allocations: 16 kB / 362.6 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.257e-05/0.007729, allocations: 23.95 kB / 362.7 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.007746, allocations: 11.98 kB / 362.7 MB, free: 5.922 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.694e-05/0.007793, allocations: 143.2 kB / 362.8 MB, free: 5.781 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007793, allocations: 0 / 362.8 MB, free: 5.781 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001679/0.007961, allocations: 79.86 kB / 362.9 MB, free: 5.703 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.0001429/0.008104, allocations: 158.9 kB / 363.1 MB, free: 5.539 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002795/0.008384, allocations: 469.5 kB / 363.5 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.008385, allocations: 0 / 363.5 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.008514, allocations: 298.1 kB / 363.8 MB, free: 4.703 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.008657, allocations: 19.98 kB / 363.8 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003669/0.009024, allocations: 443.1 kB / 364.3 MB, free: 4.203 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.936e-05/0.009074, allocations: 110.5 kB / 364.4 MB, free: 4.074 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.388e-05/0.009098, allocations: 16.5 kB / 364.4 MB, free: 4.059 MB / 282.7 MB Notification: Performance of SimCode: time 3.8e-07/0.009098, allocations: 4 kB / 364.4 MB, free: 4.055 MB / 282.7 MB Notification: Performance of Templates: time 0.002487/0.01158, allocations: 2.511 MB / 366.9 MB, free: 1.543 MB / 282.7 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.232719676569104] Failed to read output from testmodel.py, exit status != 0: 0.01514141820371151 0.023518143000000002 0.018003076 Calling exit ...