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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) 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=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 108.6 kB / 16.41 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 192.1 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.141/1.141, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007873/0.007873, allocations: 1.943 MB / 272.5 MB, free: 10.06 MB / 222.1 MB 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.001323/0.001323, allocations: 63 kB / 378.9 MB, free: 51.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05746/0.05879, allocations: 47.14 MB / 426 MB, free: 19.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.00165/0.06047, allocations: 1.281 MB / 427.3 MB, free: 18.67 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001241/0.06061, allocations: 31.89 kB / 427.3 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.234e-05/0.06064, allocations: 0 / 427.3 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.245e-05/0.06067, allocations: 3.938 kB / 427.3 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.668e-05/0.06071, allocations: 3.938 kB / 427.3 MB, free: 18.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001106/0.06082, allocations: 11.98 kB / 427.4 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.308e-05/0.06088, allocations: 35.91 kB / 427.4 MB, free: 18.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.942e-05/0.06092, allocations: 0 / 427.4 MB, free: 18.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.658e-05/0.06096, allocations: 15.98 kB / 427.4 MB, free: 18.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.588e-05/0.06101, allocations: 15.92 kB / 427.4 MB, free: 18.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.06102, allocations: 4 kB / 427.4 MB, free: 18.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.464e-06/0.06104, allocations: 0 / 427.4 MB, free: 18.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.623e-05/0.06106, allocations: 7.984 kB / 427.4 MB, free: 18.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.717e-05/0.0611, allocations: 15.91 kB / 427.4 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.025e-05/0.06115, allocations: 19.97 kB / 427.5 MB, free: 18.51 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.06116, allocations: 7.938 kB / 427.5 MB, free: 18.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.06117, allocations: 0 / 427.5 MB, free: 18.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.06118, allocations: 0 / 427.5 MB, free: 18.5 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.0003987/0.06158, allocations: 344 kB / 427.8 MB, free: 18.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.639e-05/0.06161, allocations: 11.89 kB / 427.8 MB, free: 18.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.776e-05/0.06165, allocations: 4.938 kB / 427.8 MB, free: 18.1 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.067e-05/0.06169, allocations: 160.4 kB / 428 MB, free: 17.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.507e-05/0.06174, allocations: 42.25 kB / 428 MB, free: 17.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.06176, allocations: 4.375 kB / 428 MB, free: 17.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.06187, allocations: 46.23 kB / 428.1 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.06189, allocations: 3.938 kB / 428.1 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.976e-06/0.0619, allocations: 8 kB / 428.1 MB, free: 17.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.06191, allocations: 3.938 kB / 428.1 MB, free: 17.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.426e-05/0.06198, allocations: 15.92 kB / 428.1 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.312e-05/0.06208, allocations: 165.7 kB / 428.3 MB, free: 17.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.836e-05/0.06217, allocations: 38.61 kB / 428.3 MB, free: 17.51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.893e-05/0.06222, allocations: 16.94 kB / 428.3 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.06223, allocations: 0 / 428.3 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001264/0.06236, allocations: 87.16 kB / 428.4 MB, free: 17.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.06237, allocations: 4 kB / 428.4 MB, free: 17.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002077/0.06259, allocations: 97.64 kB / 428.5 MB, free: 17.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.024e-05/0.06261, allocations: 55.39 kB / 428.6 MB, free: 17.22 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.551e-05/0.06266, allocations: 93.86 kB / 428.7 MB, free: 17.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.335e-06/0.06267, allocations: 29.7 kB / 428.7 MB, free: 17.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.051e-05/0.06269, allocations: 88.05 kB / 428.8 MB, free: 17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.145e-05/0.06271, allocations: 19.73 kB / 428.8 MB, free: 16.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.06274, allocations: 21.84 kB / 428.8 MB, free: 16.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.24e-05/0.06278, allocations: 318.8 kB / 429.1 MB, free: 16.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.72e-05/0.06283, allocations: 19.98 kB / 429.1 MB, free: 16.61 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.803e-05/0.06288, allocations: 42.5 kB / 429.2 MB, free: 16.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.45e-05/0.06298, allocations: 62.55 kB / 429.2 MB, free: 16.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.06298, allocations: 0 / 429.2 MB, free: 16.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001238/0.06311, allocations: 85.61 kB / 429.3 MB, free: 16.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.06313, allocations: 11.92 kB / 429.3 MB, free: 16.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.06314, allocations: 3.938 kB / 429.3 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.06315, allocations: 0 / 429.3 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.275e-05/0.06322, allocations: 8.188 kB / 429.3 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.06323, allocations: 0 / 429.3 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.965e-05/0.06329, allocations: 23.89 kB / 429.4 MB, free: 16.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.0633, allocations: 0 / 429.4 MB, free: 16.35 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.152e-05/0.06335, allocations: 113.8 kB / 429.5 MB, free: 16.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.407e-06/0.06336, allocations: 7.938 kB / 429.5 MB, free: 16.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.618e-05/0.06338, allocations: 7.969 kB / 429.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.06339, allocations: 0 / 429.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.0634, allocations: 0 / 429.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.0634, allocations: 3.984 kB / 429.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.279e-05/0.06346, allocations: 157.7 kB / 429.7 MB, free: 16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.06347, allocations: 7.938 kB / 429.7 MB, free: 16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.475e-05/0.06349, allocations: 4 kB / 429.7 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.0635, allocations: 11.86 kB / 429.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.06351, allocations: 0 / 429.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.06352, allocations: 0 / 429.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.06352, allocations: 400 / 429.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.06365, allocations: 117 kB / 429.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.232e-05/0.06367, allocations: 85.05 kB / 429.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.06369, allocations: 7.984 kB / 429.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.592e-05/0.06374, allocations: 12 kB / 429.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.06378, allocations: 7.984 kB / 429.9 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.06379, allocations: 0 / 429.9 MB, free: 15.72 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.425e-05/0.06381, allocations: 83.27 kB / 430 MB, free: 15.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.06381, allocations: 0 / 430 MB, free: 15.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001741/0.06399, allocations: 12 kB / 430 MB, free: 15.62 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 4.185e-05/0.06404, allocations: 99.28 kB / 430.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001504/0.06419, allocations: 47.97 kB / 430.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.0642, allocations: 0 / 430.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.393e-05/0.06426, allocations: 27.92 kB / 430.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.06439, allocations: 8 kB / 430.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002162/0.06461, allocations: 155.2 kB / 430.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.813e-05/0.06469, allocations: 0.686 MB / 431 MB, free: 14.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.245e-05/0.06471, allocations: 11.44 kB / 431 MB, free: 14.53 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.06472, allocations: 0 / 431 MB, free: 14.53 MB / 318.1 MB Notification: Performance of Templates: time 0.001423/0.06615, allocations: 0.7019 MB / 431.7 MB, free: 13.83 MB / 318.1 MB make -j1 -f MEV_MEV.Controls.PatientController.makefile (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)