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.007749/0.007749, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001458/0.001458, allocations: 195.1 kB / 16.67 MB, free: 5.969 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.515/1.515, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009178/0.009178, allocations: 1.935 MB / 271.8 MB, free: 10.05 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.001421/0.001421, allocations: 61.92 kB / 378.2 MB, free: 51.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08828/0.08972, allocations: 47.14 MB / 425.3 MB, free: 19.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002825/0.09262, allocations: 1.302 MB / 426.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001959/0.09284, allocations: 27.84 kB / 426.7 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.491e-05/0.0929, allocations: 0 / 426.7 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.789e-05/0.09295, allocations: 3.938 kB / 426.7 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.677e-05/0.09301, allocations: 0 / 426.7 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.09321, allocations: 7.984 kB / 426.7 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.711e-05/0.09333, allocations: 39.95 kB / 426.7 MB, free: 18.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.98e-05/0.09341, allocations: 0 / 426.7 MB, free: 18.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.277e-05/0.09348, allocations: 11.98 kB / 426.7 MB, free: 18.56 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.721e-05/0.09358, allocations: 19.91 kB / 426.8 MB, free: 18.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.09362, allocations: 4 kB / 426.8 MB, free: 18.54 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.698e-05/0.09365, allocations: 0 / 426.8 MB, free: 18.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.301e-05/0.0937, allocations: 11.94 kB / 426.8 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.369e-05/0.09378, allocations: 11.92 kB / 426.8 MB, free: 18.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.17e-05/0.09389, allocations: 19.95 kB / 426.8 MB, free: 18.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.09391, allocations: 0 / 426.8 MB, free: 18.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.09392, allocations: 7.938 kB / 426.8 MB, free: 18.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.09394, allocations: 0 / 426.8 MB, free: 18.49 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.0006843/0.09463, allocations: 347.5 kB / 427.1 MB, free: 18.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.09469, allocations: 11.89 kB / 427.2 MB, free: 18.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.805e-05/0.09477, allocations: 8.891 kB / 427.2 MB, free: 18.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.345e-05/0.09485, allocations: 160.4 kB / 427.3 MB, free: 17.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.907e-05/0.09495, allocations: 34.25 kB / 427.4 MB, free: 17.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.09499, allocations: 12.38 kB / 427.4 MB, free: 17.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.09519, allocations: 42.23 kB / 427.4 MB, free: 17.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.09521, allocations: 7.875 kB / 427.4 MB, free: 17.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.09524, allocations: 4 kB / 427.4 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.09526, allocations: 4 kB / 427.4 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.0954, allocations: 15.92 kB / 427.4 MB, free: 17.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.09558, allocations: 157.7 kB / 427.6 MB, free: 17.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.09577, allocations: 42.61 kB / 427.6 MB, free: 17.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.219e-05/0.09586, allocations: 20.94 kB / 427.7 MB, free: 17.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.09589, allocations: 0 / 427.7 MB, free: 17.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.09616, allocations: 83.3 kB / 427.7 MB, free: 17.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 3.878e-06/0.09619, allocations: 0 / 427.7 MB, free: 17.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004433/0.09664, allocations: 101.5 kB / 427.8 MB, free: 17.28 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.09671, allocations: 55.41 kB / 427.9 MB, free: 17.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.182e-05/0.09682, allocations: 93.86 kB / 428 MB, free: 17.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.09686, allocations: 29.7 kB / 428 MB, free: 17.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.979e-05/0.09692, allocations: 96.02 kB / 428.1 MB, free: 16.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.09697, allocations: 15.89 kB / 428.1 MB, free: 16.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.418e-05/0.09704, allocations: 21.72 kB / 428.1 MB, free: 16.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.287e-05/0.09713, allocations: 323 kB / 428.5 MB, free: 16.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.09725, allocations: 16 kB / 428.5 MB, free: 16.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.09739, allocations: 46.48 kB / 428.5 MB, free: 16.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.0976, allocations: 50.56 kB / 428.6 MB, free: 16.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.09762, allocations: 8 kB / 428.6 MB, free: 16.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003024/0.09794, allocations: 77.61 kB / 428.7 MB, free: 16.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.09798, allocations: 11.94 kB / 428.7 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.098, allocations: 0 / 428.7 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.09803, allocations: 0 / 428.7 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.09817, allocations: 15.94 kB / 428.7 MB, free: 16.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.0982, allocations: 192 / 428.7 MB, free: 16.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.09833, allocations: 15.94 kB / 428.7 MB, free: 16.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.09836, allocations: 8 kB / 428.7 MB, free: 16.34 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 8.432e-05/0.09846, allocations: 113.8 kB / 428.8 MB, free: 16.22 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.055e-05/0.09849, allocations: 7.938 kB / 428.8 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.379e-05/0.09854, allocations: 11.95 kB / 428.8 MB, free: 16.2 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.09856, allocations: 0 / 428.8 MB, free: 16.2 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.09857, allocations: 0 / 428.8 MB, free: 16.2 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.09859, allocations: 0 / 428.8 MB, free: 16.2 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.0987, allocations: 169.5 kB / 429 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.09872, allocations: 0 / 429 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.623e-05/0.09878, allocations: 15.92 kB / 429 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.0988, allocations: 7.922 kB / 429 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.09883, allocations: 4 kB / 429 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.09884, allocations: 0 / 429 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.09885, allocations: 0 / 429 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.0991, allocations: 109.4 kB / 429.1 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.89e-05/0.09915, allocations: 89.03 kB / 429.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.09918, allocations: 0 / 429.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.958e-05/0.09928, allocations: 8 kB / 429.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.09938, allocations: 11.98 kB / 429.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.0994, allocations: 0 / 429.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.34e-05/0.09945, allocations: 83.27 kB / 429.3 MB, free: 15.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.09946, allocations: 0 / 429.3 MB, free: 15.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003638/0.09984, allocations: 12 kB / 429.3 MB, free: 15.61 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 0.000108/0.09996, allocations: 95.19 kB / 429.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.1003, allocations: 56.05 kB / 429.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1003, allocations: 0 / 429.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.1004, allocations: 27.92 kB / 429.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.1007, allocations: 8.938 kB / 429.5 MB, free: 15.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000464/0.1012, allocations: 117.5 kB / 429.6 MB, free: 15.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.1013, allocations: 0.6807 MB / 430.3 MB, free: 14.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.994e-05/0.1014, allocations: 8.062 kB / 430.3 MB, free: 14.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.932e-05/0.1015, allocations: 15.44 kB / 430.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1015, allocations: 0 / 430.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of Templates: time 0.004138/0.1056, allocations: 0.6227 MB / 431 MB, free: 13.93 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)