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.0007973/0.0007973, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008468/0.0008469, allocations: 181.3 kB / 16.92 MB, free: 6.652 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.316/1.316, allocations: 205.4 MB / 223.1 MB, free: 5.449 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01005/0.01005, allocations: 1.92 MB / 273.3 MB, free: 3.293 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.0004829/0.000483, allocations: 16.61 kB / 332.1 MB, free: 33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06636/0.06685, allocations: 48.1 MB / 380.2 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001211/0.0681, allocations: 1.011 MB / 381.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001356/0.06824, allocations: 35.72 kB / 381.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.963e-05/0.06828, allocations: 0 / 381.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.0683, allocations: 0 / 381.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.641e-05/0.06833, allocations: 0 / 381.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001244/0.06846, allocations: 11.98 kB / 381.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.215e-05/0.06854, allocations: 23.98 kB / 381.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.889e-05/0.0686, allocations: 4 kB / 381.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.164e-05/0.06864, allocations: 7.984 kB / 381.3 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.55e-05/0.0687, allocations: 19.91 kB / 381.4 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.06873, allocations: 8 kB / 381.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.06874, allocations: 4 kB / 381.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.109e-05/0.06877, allocations: 7.984 kB / 381.4 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.98e-05/0.06882, allocations: 41.62 kB / 381.4 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 4.276e-05/0.06887, allocations: 11.98 kB / 381.4 MB, free: 15.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.06888, allocations: 0 / 381.4 MB, free: 15.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.06889, allocations: 0 / 381.4 MB, free: 15.64 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.0689, allocations: 3.938 kB / 381.4 MB, free: 15.64 MB / 286.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.0004965/0.0694, allocations: 347.8 kB / 381.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.06944, allocations: 12.03 kB / 381.8 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.416e-05/0.06948, allocations: 4.844 kB / 381.8 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.027e-05/0.06958, allocations: 168.4 kB / 382 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.739e-05/0.06964, allocations: 30.27 kB / 382 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.06966, allocations: 4.375 kB / 382 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.0698, allocations: 54.23 kB / 382 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.06981, allocations: 3.938 kB / 382 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.06983, allocations: 0 / 382 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.06984, allocations: 0 / 382 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.872e-05/0.06993, allocations: 27.92 kB / 382.1 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.07009, allocations: 161.6 kB / 382.2 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.07022, allocations: 50.59 kB / 382.3 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.284e-05/0.07028, allocations: 16.86 kB / 382.3 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.572e-06/0.0703, allocations: 0 / 382.3 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.0705, allocations: 79.39 kB / 382.4 MB, free: 14.53 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.07051, allocations: 4 kB / 382.4 MB, free: 14.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002733/0.07079, allocations: 113.5 kB / 382.5 MB, free: 14.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.07084, allocations: 51.41 kB / 382.5 MB, free: 14.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.88e-05/0.07091, allocations: 97.86 kB / 382.6 MB, free: 14.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.07094, allocations: 29.64 kB / 382.7 MB, free: 14.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.923e-05/0.07099, allocations: 96.16 kB / 382.8 MB, free: 14.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.07101, allocations: 11.84 kB / 382.8 MB, free: 14.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.83e-05/0.07105, allocations: 17.72 kB / 382.8 MB, free: 14.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.733e-05/0.07115, allocations: 318.8 kB / 383.1 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.421e-05/0.07122, allocations: 23.98 kB / 383.1 MB, free: 13.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.316e-05/0.0713, allocations: 38.56 kB / 383.2 MB, free: 13.68 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.07145, allocations: 66.5 kB / 383.2 MB, free: 13.61 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.07146, allocations: 0 / 383.2 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001758/0.07164, allocations: 93.5 kB / 383.3 MB, free: 13.51 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.07167, allocations: 16 kB / 383.3 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.07168, allocations: 0 / 383.3 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.147e-06/0.07169, allocations: 0 / 383.3 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.738e-05/0.07177, allocations: 15.94 kB / 383.3 MB, free: 13.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.07179, allocations: 0 / 383.3 MB, free: 13.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.386e-05/0.07187, allocations: 11.98 kB / 383.4 MB, free: 13.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.07188, allocations: 4 kB / 383.4 MB, free: 13.46 MB / 286.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 7.656e-05/0.07196, allocations: 109.8 kB / 383.5 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.07199, allocations: 15.84 kB / 383.5 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.247e-05/0.07201, allocations: 15.94 kB / 383.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.07202, allocations: 0 / 383.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.07203, allocations: 0 / 383.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.07204, allocations: 4 kB / 383.5 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.07215, allocations: 153.7 kB / 383.7 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.07216, allocations: 0 / 383.7 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.253e-05/0.07219, allocations: 7.984 kB / 383.7 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.0722, allocations: 4.125 kB / 383.7 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.07222, allocations: 4 kB / 383.7 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.07223, allocations: 7.938 kB / 383.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.07223, allocations: 3.938 kB / 383.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.07242, allocations: 109.5 kB / 383.8 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.074e-05/0.07247, allocations: 88.94 kB / 383.9 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.07249, allocations: 0 / 383.9 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.257e-05/0.07256, allocations: 15.98 kB / 383.9 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.337e-05/0.07261, allocations: 11.98 kB / 383.9 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.07262, allocations: 4 kB / 383.9 MB, free: 12.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.035e-05/0.07266, allocations: 83.22 kB / 384 MB, free: 12.74 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07266, allocations: 0 / 384 MB, free: 12.74 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001965/0.07286, allocations: 12 kB / 384 MB, free: 12.73 MB / 286.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 7.501e-05/0.07295, allocations: 87.25 kB / 384.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000171/0.07312, allocations: 68.06 kB / 384.2 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.07314, allocations: 0 / 384.2 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.141e-05/0.07321, allocations: 27.92 kB / 384.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001481/0.07337, allocations: 4 kB / 384.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002804/0.07366, allocations: 162.5 kB / 384.3 MB, free: 12.34 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.07388, allocations: 0.6809 MB / 385 MB, free: 11.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.583e-05/0.07392, allocations: 7.438 kB / 385 MB, free: 11.63 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.07392, allocations: 0 / 385 MB, free: 11.63 MB / 286.1 MB Notification: Performance of Templates: time 0.001874/0.0758, allocations: 0.6814 MB / 385.7 MB, free: 10.95 MB / 286.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)