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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 191.1 kB / 22.23 MB, free: 5.156 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.44/1.44, allocations: 207.6 MB / 233 MB, free: 10.02 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.009447/0.009447, allocations: 1.97 MB / 287.2 MB, free: 3.875 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 76.61 kB / 402.2 MB, free: 50.9 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.06794/0.06999, allocations: 49.7 MB / 451.9 MB, free: 5.961 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002204/0.0722, allocations: 1.283 MB / 453.2 MB, free: 4.668 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0001804/0.07238, allocations: 31.89 kB / 453.2 MB, free: 4.637 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 4.085e-05/0.07242, allocations: 0 / 453.2 MB, free: 4.637 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.07245, allocations: 0 / 453.2 MB, free: 4.637 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 3.381e-05/0.07248, allocations: 3.938 kB / 453.2 MB, free: 4.633 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.07264, allocations: 11.92 kB / 453.2 MB, free: 4.621 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 7.563e-05/0.07271, allocations: 27.97 kB / 453.3 MB, free: 4.594 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.996e-05/0.07276, allocations: 4 kB / 453.3 MB, free: 4.59 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 4.173e-05/0.07281, allocations: 15.98 kB / 453.3 MB, free: 4.574 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 5.914e-05/0.07286, allocations: 15.92 kB / 453.3 MB, free: 4.559 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.07288, allocations: 4 kB / 453.3 MB, free: 4.555 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.237e-06/0.07289, allocations: 0 / 453.3 MB, free: 4.555 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.074e-05/0.07291, allocations: 15.97 kB / 453.3 MB, free: 4.539 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 4.088e-05/0.07295, allocations: 3.938 kB / 453.3 MB, free: 4.535 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 7.183e-05/0.07303, allocations: 23.91 kB / 453.4 MB, free: 4.512 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.07303, allocations: 0 / 453.4 MB, free: 4.512 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.843e-06/0.07303, allocations: 0 / 453.4 MB, free: 4.512 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 5.68e-06/0.07304, allocations: 3.938 kB / 453.4 MB, free: 4.508 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: 4
 * Number of variables: 4
Notification: Performance of Generate backend data structure: time 0.0004834/0.07352, allocations: 274.8 kB / 453.6 MB, free: 4.207 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.07356, allocations: 15.98 kB / 453.6 MB, free: 4.191 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.697e-05/0.0736, allocations: 4.891 kB / 453.7 MB, free: 4.188 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 5.611e-05/0.07365, allocations: 110.5 kB / 453.8 MB, free: 4.055 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.866e-05/0.07371, allocations: 30.27 kB / 453.8 MB, free: 4.02 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.121e-05/0.07372, allocations: 384 / 453.8 MB, free: 4.02 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.07385, allocations: 54.23 kB / 453.8 MB, free: 3.961 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.07386, allocations: 3.938 kB / 453.8 MB, free: 3.957 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.07387, allocations: 0 / 453.8 MB, free: 3.957 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.07388, allocations: 0 / 453.8 MB, free: 3.957 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.942e-05/0.07395, allocations: 23.97 kB / 453.9 MB, free: 3.934 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.07407, allocations: 132.6 kB / 454 MB, free: 3.762 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.07417, allocations: 50.53 kB / 454 MB, free: 3.703 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 3.923e-05/0.07421, allocations: 16.86 kB / 454.1 MB, free: 3.684 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.07422, allocations: 0 / 454.1 MB, free: 3.684 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.07441, allocations: 83.38 kB / 454.1 MB, free: 3.59 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.07441, allocations: 0 / 454.1 MB, free: 3.59 MB / 318.1 MB
Notification: Performance of matching and sorting (n=7): time 0.0002413/0.07465, allocations: 101.5 kB / 454.2 MB, free: 3.484 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.07469, allocations: 55.41 kB / 454.3 MB, free: 3.418 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.75e-05/0.07474, allocations: 97.86 kB / 454.4 MB, free: 3.312 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.07475, allocations: 29.69 kB / 454.4 MB, free: 3.277 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 2.477e-05/0.07477, allocations: 92.09 kB / 454.5 MB, free: 3.184 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.07478, allocations: 11.84 kB / 454.5 MB, free: 3.172 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.07482, allocations: 25.72 kB / 454.6 MB, free: 3.141 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 3.887e-05/0.07485, allocations: 314.8 kB / 454.9 MB, free: 2.824 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.782e-05/0.0749, allocations: 24.11 kB / 454.9 MB, free: 2.801 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 4.937e-05/0.07495, allocations: 46.56 kB / 454.9 MB, free: 2.746 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.595e-05/0.07504, allocations: 62.78 kB / 455 MB, free: 2.676 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.07504, allocations: 0 / 455 MB, free: 2.676 MB / 318.1 MB
Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001295/0.07517, allocations: 89.61 kB / 455.1 MB, free: 2.582 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.07518, allocations: 7.938 kB / 455.1 MB, free: 2.574 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.07519, allocations: 0 / 455.1 MB, free: 2.574 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.0752, allocations: 7.984 kB / 455.1 MB, free: 2.566 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.931e-05/0.07527, allocations: 7.938 kB / 455.1 MB, free: 2.559 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.07528, allocations: 7.984 kB / 455.1 MB, free: 2.551 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.185e-05/0.07534, allocations: 11.95 kB / 455.1 MB, free: 2.539 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.07535, allocations: 0 / 455.1 MB, free: 2.539 MB / 318.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 4.762e-05/0.0754, allocations: 121.9 kB / 455.2 MB, free: 2.41 MB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.08e-05/0.07541, allocations: 7.938 kB / 455.2 MB, free: 2.402 MB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.889e-05/0.07543, allocations: 4.062 kB / 455.2 MB, free: 2.391 MB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.07543, allocations: 0 / 455.2 MB, free: 2.391 MB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.07543, allocations: 0 / 455.2 MB, free: 2.391 MB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.07543, allocations: 0 / 455.2 MB, free: 2.391 MB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.182e-05/0.0755, allocations: 128.8 kB / 455.4 MB, free: 2.223 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.0755, allocations: 3.984 kB / 455.4 MB, free: 2.219 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.454e-05/0.07552, allocations: 4 kB / 455.4 MB, free: 2.215 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.07552, allocations: 3.938 kB / 455.4 MB, free: 2.211 MB / 318.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.07553, allocations: 11.94 kB / 455.4 MB, free: 2.199 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.07553, allocations: 192 / 455.4 MB, free: 2.199 MB / 318.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.07553, allocations: 3.938 kB / 455.4 MB, free: 2.195 MB / 318.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.07568, allocations: 121 kB / 455.5 MB, free: 2.059 MB / 318.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.023e-06/0.07569, allocations: 7.938 kB / 455.5 MB, free: 2.051 MB / 318.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.0757, allocations: 0 / 455.5 MB, free: 2.051 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.734e-05/0.07575, allocations: 7.984 kB / 455.5 MB, free: 2.043 MB / 318.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.0758, allocations: 15.98 kB / 455.6 MB, free: 2.027 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.0758, allocations: 4 kB / 455.6 MB, free: 2.023 MB / 318.1 MB
Notification: Performance of sorting global known variables: time 1.709e-05/0.07582, allocations: 75.28 kB / 455.6 MB, free: 1.949 MB / 318.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.07582, allocations: 0 / 455.6 MB, free: 1.949 MB / 318.1 MB
Notification: Performance of remove unused functions: time 0.0001786/0.076, allocations: 8 kB / 455.6 MB, free: 1.941 MB / 318.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 5.87e-05/0.07606, allocations: 99.23 kB / 455.7 MB, free: 1.836 MB / 318.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001494/0.07621, allocations: 48.02 kB / 455.8 MB, free: 1.789 MB / 318.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.07621, allocations: 4 kB / 455.8 MB, free: 1.785 MB / 318.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.433e-05/0.07626, allocations: 19.92 kB / 455.8 MB, free: 1.766 MB / 318.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.0764, allocations: 15.92 kB / 455.8 MB, free: 1.75 MB / 318.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.07668, allocations: 117.6 kB / 455.9 MB, free: 1.609 MB / 318.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 8.641e-05/0.07676, allocations: 0.6807 MB / 456.6 MB, free: 0.9023 MB / 318.1 MB
Notification: Performance of simCode: alias equations: time 2.705e-05/0.07679, allocations: 4.125 kB / 456.6 MB, free: 0.8984 MB / 318.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/0.07682, allocations: 15.42 kB / 456.6 MB, free: 0.8828 MB / 318.1 MB
Notification: Performance of SimCode: time 2.91e-07/0.07682, allocations: 0 / 456.6 MB, free: 0.8828 MB / 318.1 MB
Notification: Performance of Templates: time 0.00276/0.07958, allocations: 0.67 MB / 457.3 MB, free: 220 kB / 318.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 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.1801131227985024]
Failed to read output from testmodel.py, exit status != 0:
0.08680939115583897 0.10457268800000001 0.028063075000000003
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f017e5217b0>