Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Controls.PatientController.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.001698/0.001698, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.001904/0.001904, allocations: 162.4 kB / 23.02 MB, free: 4.949 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.312/1.312, allocations: 158.6 MB / 184.8 MB, free: 6.176 MB / 174.1 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.00806/0.00806, allocations: 1.436 MB / 238.4 MB, free: 1.688 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.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") [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.003317/0.003317, allocations: 63.91 kB / 353.4 MB, free: 19.24 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1078, allocations: 49.67 MB / 403.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002485/0.1103, allocations: 1.275 MB / 404.3 MB, free: 136 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001637/0.1105, allocations: 31.89 kB / 404.4 MB, free: 104 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.755e-05/0.1105, allocations: 0 / 404.4 MB, free: 104 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.3e-05/0.1105, allocations: 0 / 404.4 MB, free: 104 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.642e-05/0.1105, allocations: 3.938 kB / 404.4 MB, free: 100 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001331/0.1107, allocations: 11.98 kB / 404.4 MB, free: 88 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.428e-05/0.1107, allocations: 27.97 kB / 404.4 MB, free: 60 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.708e-05/0.1108, allocations: 0 / 404.4 MB, free: 60 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.733e-05/0.1108, allocations: 15.98 kB / 404.4 MB, free: 44 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.694e-05/0.1109, allocations: 11.92 kB / 404.4 MB, free: 32 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.1109, allocations: 4 kB / 404.4 MB, free: 28 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.121e-05/0.1109, allocations: 0 / 404.4 MB, free: 28 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.1109, allocations: 15.97 kB / 404.4 MB, free: 12 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.349e-05/0.111, allocations: 11.92 kB / 404.5 MB, free: 0 / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.55e-05/0.1111, allocations: 23.91 kB / 404.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1111, allocations: 4 kB / 404.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1111, allocations: 0 / 404.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1111, allocations: 0 / 404.5 MB, free: 15.97 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005542/0.1116, allocations: 274.7 kB / 404.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1117, allocations: 15.98 kB / 404.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.1117, allocations: 4.891 kB / 404.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.809e-05/0.1118, allocations: 106.5 kB / 404.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-05/0.1119, allocations: 63.97 kB / 404.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.1119, allocations: 384 / 404.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.1121, allocations: 50.23 kB / 405 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1121, allocations: 3.938 kB / 405 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1121, allocations: 3.984 kB / 405 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.1121, allocations: 11.88 kB / 405 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.766e-05/0.1122, allocations: 15.98 kB / 405 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.1123, allocations: 117.2 kB / 405.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.1125, allocations: 30.61 kB / 405.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.327e-05/0.1125, allocations: 24.94 kB / 405.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.1125, allocations: 0 / 405.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.1127, allocations: 79.36 kB / 405.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.1127, allocations: 0 / 405.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002991/0.113, allocations: 109.5 kB / 405.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.1131, allocations: 55.41 kB / 405.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.118e-05/0.1132, allocations: 97.84 kB / 405.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.1132, allocations: 33.83 kB / 405.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.988e-05/0.1132, allocations: 88.03 kB / 405.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.1133, allocations: 15.91 kB / 405.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/0.1133, allocations: 25.7 kB / 405.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1135, allocations: 314.8 kB / 406 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.162e-05/0.1135, allocations: 19.98 kB / 406 MB, free: 14.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.787e-05/0.1136, allocations: 38.56 kB / 406.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.1137, allocations: 62.48 kB / 406.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1137, allocations: 4 kB / 406.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001761/0.1139, allocations: 85.61 kB / 406.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.1139, allocations: 4 kB / 406.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1139, allocations: 3.938 kB / 406.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.1139, allocations: 192 / 406.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.74e-05/0.114, allocations: 15.92 kB / 406.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.114, allocations: 3.938 kB / 406.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.483e-05/0.1141, allocations: 15.94 kB / 406.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.1141, allocations: 4.062 kB / 406.2 MB, free: 14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition3,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 9.588e-05/0.1142, allocations: 113.8 kB / 406.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.1142, allocations: 4 kB / 406.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.1142, allocations: 12.06 kB / 406.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1142, allocations: 0 / 406.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1142, allocations: 0 / 406.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1142, allocations: 0 / 406.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1144, allocations: 109.3 kB / 406.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1144, allocations: 0 / 406.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.088e-05/0.1144, allocations: 7.938 kB / 406.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1144, allocations: 4 kB / 406.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.1144, allocations: 3.984 kB / 406.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.1144, allocations: 3.938 kB / 406.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.1144, allocations: 3.938 kB / 406.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.1146, allocations: 113 kB / 406.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-06/0.1146, allocations: 3.938 kB / 406.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.1146, allocations: 0 / 406.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.055e-05/0.1147, allocations: 15.92 kB / 406.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.1147, allocations: 11.98 kB / 406.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.988e-06/0.1147, allocations: 4 kB / 406.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.31e-05/0.1148, allocations: 83.27 kB / 406.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1148, allocations: 0 / 406.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002014/0.115, allocations: 12 kB / 406.7 MB, free: 13.44 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: 6 ($whenCondition2,$whenCondition3,$whenCondition1,t_on,t_off,active) * Number of discrete states: 2 (active,t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 9.216e-05/0.1151, allocations: 91.25 kB / 406.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.1153, allocations: 55.91 kB / 406.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1153, allocations: 0 / 406.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.134e-05/0.1153, allocations: 23.92 kB / 406.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.1155, allocations: 12.22 kB / 406.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.1158, allocations: 126.4 kB / 407 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.305e-05/0.1159, allocations: 63.34 kB / 407.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.604e-05/0.1159, allocations: 0 / 407.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.311e-05/0.1159, allocations: 12.5 kB / 407.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1159, allocations: 0 / 407.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of Templates: time 0.00302/0.119, allocations: 0.6576 MB / 407.8 MB, free: 12.36 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Controls.PatientController.makefile [Timeout 660] (rm -f MEV_MEV.Controls.PatientController.pipe ; mkfifo MEV_MEV.Controls.PatientController.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController.pipe >> ../files/MEV_MEV.Controls.PatientController.sim & ./MEV_MEV.Controls.PatientController -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.164331238018349] Failed to read output from testmodel.py, exit status != 0: 0.12776122300419956 0.14296851000000002 0.028741667000000002 Calling exit ...