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.0008617/0.0008616, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0008116/0.0008117, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.258/1.258, allocations: 205.4 MB / 222.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009515/0.009515, allocations: 1.924 MB / 272.3 MB, free: 3.277 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.0004668/0.0004669, allocations: 12 kB / 330.9 MB, free: 33.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08096, allocations: 48.09 MB / 379 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.00144/0.08245, allocations: 1.002 MB / 380 MB, free: 196 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001709/0.08266, allocations: 31.89 kB / 380 MB, free: 164 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.07e-05/0.0827, allocations: 0 / 380 MB, free: 164 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.396e-05/0.08272, allocations: 0 / 380 MB, free: 164 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 3.094e-05/0.08276, allocations: 8 kB / 380 MB, free: 156 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.08292, allocations: 3.984 kB / 380 MB, free: 152 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 7.13e-05/0.083, allocations: 19.97 kB / 380 MB, free: 132 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.018e-05/0.08305, allocations: 1.656 kB / 380 MB, free: 132 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.472e-05/0.08309, allocations: 15.92 kB / 380 MB, free: 116 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.419e-05/0.08316, allocations: 15.98 kB / 380.1 MB, free: 100 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.08318, allocations: 0 / 380.1 MB, free: 100 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.265e-05/0.0832, allocations: 4 kB / 380.1 MB, free: 96 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.922e-05/0.08323, allocations: 7.984 kB / 380.1 MB, free: 88 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.029e-05/0.08328, allocations: 37.64 kB / 380.1 MB, free: 44 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 4.5e-05/0.08333, allocations: 7.984 kB / 380.1 MB, free: 36 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.08334, allocations: 0 / 380.1 MB, free: 36 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.08335, allocations: 0 / 380.1 MB, free: 36 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.08336, allocations: 0 / 380.1 MB, free: 36 kB / 270.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.0005136/0.08388, allocations: 347.6 kB / 380.5 MB, free: 15.65 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.08392, allocations: 8.031 kB / 380.5 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.105e-05/0.08397, allocations: 15.91 kB / 380.5 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.352e-05/0.08406, allocations: 159.1 kB / 380.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.902e-05/0.08413, allocations: 33.69 kB / 380.7 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.08415, allocations: 7.953 kB / 380.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.08431, allocations: 49.67 kB / 380.7 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.08433, allocations: 3.938 kB / 380.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.08434, allocations: 0 / 380.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.08435, allocations: 3.938 kB / 380.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.844e-05/0.08444, allocations: 27.92 kB / 380.8 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.08461, allocations: 165.6 kB / 380.9 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.08473, allocations: 42.59 kB / 381 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.08475, allocations: 0 / 381 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.08496, allocations: 83.42 kB / 381 MB, free: 14.94 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.08498, allocations: 0 / 381 MB, free: 14.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002844/0.08526, allocations: 109.5 kB / 381.1 MB, free: 14.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.08531, allocations: 55.41 kB / 381.2 MB, free: 14.76 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.165e-05/0.08539, allocations: 97.84 kB / 381.3 MB, free: 14.65 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.08541, allocations: 29.7 kB / 381.3 MB, free: 14.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.73e-05/0.08545, allocations: 84.05 kB / 381.4 MB, free: 14.53 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.08548, allocations: 19.83 kB / 381.4 MB, free: 14.51 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-06/0.08549, allocations: 0 / 381.4 MB, free: 14.51 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.08559, allocations: 322.8 kB / 381.7 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.815e-05/0.08567, allocations: 16.12 kB / 381.8 MB, free: 14.17 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.553e-05/0.08574, allocations: 50.48 kB / 381.8 MB, free: 14.11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.208e-05/0.0858, allocations: 16 kB / 381.8 MB, free: 14.1 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.08581, allocations: 0 / 381.8 MB, free: 14.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001695/0.08599, allocations: 97.52 kB / 381.9 MB, free: 14 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.08601, allocations: 7.953 kB / 381.9 MB, free: 13.99 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.08602, allocations: 0 / 381.9 MB, free: 13.99 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.08604, allocations: 0 / 381.9 MB, free: 13.99 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.831e-05/0.08613, allocations: 11.98 kB / 381.9 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.08614, allocations: 4 kB / 381.9 MB, free: 13.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.552e-05/0.08621, allocations: 8 kB / 381.9 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.08623, allocations: 4 kB / 382 MB, free: 13.96 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,$whenCondition1,$PRE.t_on,t_on,$PRE.t_off,t_off,$PRE.active,active) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.876e-05/0.08633, allocations: 125.8 kB / 382.1 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.08634, allocations: 3.906 kB / 382.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.121e-05/0.08637, allocations: 7.922 kB / 382.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.08638, allocations: 4 kB / 382.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.08639, allocations: 0 / 382.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.0864, allocations: 0 / 382.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.08652, allocations: 161.6 kB / 382.2 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.08653, allocations: 192 / 382.2 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.348e-05/0.08657, allocations: 8 kB / 382.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.08658, allocations: 11.88 kB / 382.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.08659, allocations: 4 kB / 382.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.0866, allocations: 3.953 kB / 382.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.08661, allocations: 0 / 382.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001817/0.08679, allocations: 113.4 kB / 382.4 MB, free: 13.45 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.602e-05/0.08684, allocations: 81.02 kB / 382.5 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.08686, allocations: 8 kB / 382.5 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.308e-05/0.08692, allocations: 11.98 kB / 382.5 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.339e-05/0.08698, allocations: 15.92 kB / 382.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-06/0.08699, allocations: 4 kB / 382.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.564e-05/0.08704, allocations: 79.28 kB / 382.6 MB, free: 13.24 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08704, allocations: 0 / 382.6 MB, free: 13.24 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001819/0.08723, allocations: 8 kB / 382.6 MB, free: 13.23 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 (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 8.658e-05/0.08732, allocations: 103.3 kB / 382.7 MB, free: 13.12 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.08748, allocations: 55.98 kB / 382.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.08749, allocations: 0 / 382.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.435e-05/0.08756, allocations: 27.97 kB / 382.8 MB, free: 13.04 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.313e-05/0.08765, allocations: 7.938 kB / 382.8 MB, free: 13.03 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000245/0.08791, allocations: 132.8 kB / 382.9 MB, free: 12.87 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.08812, allocations: 0.6809 MB / 383.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.082e-05/0.08815, allocations: 4.172 kB / 383.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.08819, allocations: 15.38 kB / 383.6 MB, free: 12.14 MB / 286.1 MB Notification: Performance of SimCode: time 3e-07/0.0882, allocations: 0 / 383.6 MB, free: 12.14 MB / 286.1 MB Notification: Performance of Templates: time 0.002082/0.09029, allocations: 0.4934 MB / 384.1 MB, free: 11.65 MB / 286.1 MB make -j1 -f MEV_MEV.Controls.PatientController.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: