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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001405/0.001405, allocations: 170.3 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.0194/0.0194, allocations: 1.922 MB / 9.995 MB, free: 0.6016 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.3 MB / 216.2 MB, free: 15.9 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008442/0.0008443, allocations: 93.64 kB / 264.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.254e-05/1.256e-05, allocations: 0 / 319 MB, free: 19.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08518/0.0852, allocations: 48.08 MB / 367.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3078/0.3931, allocations: 73.91 MB / 441 MB, free: 4.051 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000176/0.3933, allocations: 58.66 kB / 441.1 MB, free: 4.023 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00159/0.3949, allocations: 0.5425 MB / 441.6 MB, free: 3.504 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3949, allocations: 0 / 441.6 MB, free: 3.504 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.395, allocations: 0 / 441.6 MB, free: 3.504 MB / 314.7 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.0004665/0.3954, allocations: 333.5 kB / 442 MB, free: 3.141 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3955, allocations: 8.031 kB / 442 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.583e-05/0.3955, allocations: 4.625 kB / 442 MB, free: 3.129 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.3957, allocations: 171 kB / 442.1 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.3957, allocations: 0 / 442.1 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.3957, allocations: 4 kB / 442.2 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.31e-05/0.3958, allocations: 7.953 kB / 442.2 MB, free: 2.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.877e-05/0.3959, allocations: 49.94 kB / 442.2 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.3959, allocations: 0 / 442.2 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.3959, allocations: 4.859 kB / 442.2 MB, free: 2.859 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.396, allocations: 4 kB / 442.2 MB, free: 2.855 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001682/0.3961, allocations: 137.3 kB / 442.4 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.663e-05/0.3962, allocations: 30.53 kB / 442.4 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.318e-05/0.3963, allocations: 12.84 kB / 442.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.3963, allocations: 0 / 442.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.3965, allocations: 66.2 kB / 442.5 MB, free: 2.566 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.3965, allocations: 0 / 442.5 MB, free: 2.566 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002066/0.3967, allocations: 75.89 kB / 442.5 MB, free: 2.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.3967, allocations: 55.39 kB / 442.6 MB, free: 2.426 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.196e-05/0.3968, allocations: 96.56 kB / 442.7 MB, free: 2.328 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.3969, allocations: 25.7 kB / 442.7 MB, free: 2.297 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.7e-05/0.3969, allocations: 84.05 kB / 442.8 MB, free: 2.211 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.3969, allocations: 18.86 kB / 442.8 MB, free: 2.195 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-06/0.397, allocations: 3.938 kB / 442.8 MB, free: 2.191 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3971, allocations: 318.3 kB / 443.1 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.583e-05/0.3971, allocations: 15.88 kB / 443.1 MB, free: 1.863 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.152e-05/0.3972, allocations: 33.14 kB / 443.2 MB, free: 1.828 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.116e-05/0.3972, allocations: 15.36 kB / 443.2 MB, free: 1.816 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3972, allocations: 0 / 443.2 MB, free: 1.816 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001675/0.3974, allocations: 72.97 kB / 443.3 MB, free: 1.746 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.3975, allocations: 8 kB / 443.3 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3975, allocations: 0 / 443.3 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.3975, allocations: 4.062 kB / 443.3 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.413e-05/0.3976, allocations: 14.7 kB / 443.3 MB, free: 1.723 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.3976, allocations: 9.312 kB / 443.3 MB, free: 1.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.534e-05/0.3977, allocations: 7.938 kB / 443.3 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.3977, allocations: 4 kB / 443.3 MB, free: 1.703 MB / 314.7 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,$whenCondition1,$PRE.t_on,t_on,$PRE.t_off,t_off,$PRE.active,active) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.085e-05/0.3978, allocations: 105 kB / 443.4 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.3978, allocations: 7.047 kB / 443.4 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.3979, allocations: 8.406 kB / 443.4 MB, free: 1.586 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.3979, allocations: 4 kB / 443.4 MB, free: 1.582 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.3979, allocations: 3.953 kB / 443.4 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3979, allocations: 0 / 443.4 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.398, allocations: 141.6 kB / 443.6 MB, free: 1.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3981, allocations: 0 / 443.6 MB, free: 1.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.173e-05/0.3981, allocations: 4 kB / 443.6 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.3981, allocations: 3.984 kB / 443.6 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.3981, allocations: 0 / 443.6 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.3981, allocations: 7.938 kB / 443.6 MB, free: 1.391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3982, allocations: 4 kB / 443.6 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001418/0.3983, allocations: 91.27 kB / 443.7 MB, free: 1.289 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.3984, allocations: 85.08 kB / 443.8 MB, free: 1.188 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.3984, allocations: 0 / 443.8 MB, free: 1.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.764e-05/0.3985, allocations: 8 kB / 443.8 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.092e-05/0.3985, allocations: 11.97 kB / 443.8 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.3985, allocations: 10.88 kB / 443.8 MB, free: 1.164 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.764e-05/0.3986, allocations: 83.28 kB / 443.9 MB, free: 1.082 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3986, allocations: 0 / 443.9 MB, free: 1.082 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002826/0.3989, allocations: 8 kB / 443.9 MB, free: 1.074 MB / 314.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.545e-05/0.399, allocations: 91.38 kB / 444 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005122/0.3995, allocations: 0.7193 MB / 444.7 MB, free: 248 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3995, allocations: 4.125 kB / 444.7 MB, free: 244 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.03e-05/0.3996, allocations: 18.89 kB / 444.7 MB, free: 232 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.3997, allocations: 11.92 kB / 444.7 MB, free: 220 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002543/0.4, allocations: 72.02 kB / 444.8 MB, free: 128 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.4003, allocations: 0.6807 MB / 445.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.026e-05/0.4003, allocations: 8.188 kB / 445.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.752e-05/0.4003, allocations: 11.42 kB / 445.5 MB, free: 15.39 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4004, allocations: 0 / 445.5 MB, free: 15.39 MB / 330.7 MB Notification: Performance of Templates: time 0.002816/0.4032, allocations: 0.5148 MB / 446 MB, free: 14.89 MB / 330.7 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)