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.0009916/0.0009916, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001057/0.001057, allocations: 191.6 kB / 16.14 MB, free: 6.703 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.419/1.419, allocations: 205.1 MB / 222 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008974/0.008974, allocations: 1.928 MB / 271.3 MB, free: 3.559 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.00185/0.00185, allocations: 63.91 kB / 329.1 MB, free: 33.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08346/0.08532, allocations: 47.14 MB / 376.3 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.003227/0.0886, allocations: 1.338 MB / 377.6 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002502/0.08888, allocations: 35.88 kB / 377.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.558e-05/0.08894, allocations: 0 / 377.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.18e-05/0.08901, allocations: 0 / 377.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.246e-05/0.08907, allocations: 0 / 377.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001815/0.08925, allocations: 7.984 kB / 377.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.738e-05/0.08935, allocations: 27.92 kB / 377.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.985e-05/0.08942, allocations: 4 kB / 377.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.744e-05/0.08948, allocations: 19.92 kB / 377.7 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.957e-05/0.08955, allocations: 15.97 kB / 377.7 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.08958, allocations: 4 kB / 377.7 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.349e-05/0.0896, allocations: 0 / 377.7 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.08964, allocations: 11.92 kB / 377.8 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.72e-05/0.0897, allocations: 15.92 kB / 377.8 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 8.658e-05/0.0898, allocations: 23.91 kB / 377.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.08981, allocations: 0 / 377.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.08981, allocations: 0 / 377.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.08982, allocations: 0 / 377.8 MB, free: 0.5664 MB / 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.000687/0.09051, allocations: 351.8 kB / 378.1 MB, free: 176 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.09057, allocations: 8.031 kB / 378.1 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.09063, allocations: 4.844 kB / 378.1 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.0908, allocations: 164.4 kB / 378.3 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.09091, allocations: 38.25 kB / 378.3 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.09093, allocations: 384 / 378.3 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.09114, allocations: 54.17 kB / 378.4 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.09117, allocations: 7.938 kB / 378.4 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.09119, allocations: 0 / 378.4 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.0912, allocations: 0 / 378.4 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.903e-05/0.0913, allocations: 15.98 kB / 378.4 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002352/0.09154, allocations: 165.7 kB / 378.6 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.09168, allocations: 42.59 kB / 378.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.273e-05/0.09174, allocations: 12.86 kB / 378.6 MB, free: 15.56 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.09176, allocations: 7.938 kB / 378.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.09201, allocations: 79.39 kB / 378.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.09202, allocations: 0 / 378.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003127/0.09234, allocations: 105.5 kB / 378.8 MB, free: 15.35 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.09241, allocations: 55.41 kB / 378.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.09251, allocations: 97.8 kB / 379 MB, free: 15.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.09255, allocations: 33.7 kB / 379 MB, free: 15.14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.279e-05/0.0926, allocations: 88.03 kB / 379.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.09263, allocations: 15.84 kB / 379.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.02e-05/0.09268, allocations: 17.72 kB / 379.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.09283, allocations: 322.8 kB / 379.4 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.293e-05/0.0929, allocations: 19.98 kB / 379.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.965e-05/0.09298, allocations: 42.62 kB / 379.5 MB, free: 14.62 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.09312, allocations: 66.8 kB / 379.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.09313, allocations: 0 / 379.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001739/0.09331, allocations: 93.5 kB / 379.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.09333, allocations: 12.19 kB / 379.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.09334, allocations: 0 / 379.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.09336, allocations: 7.938 kB / 379.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.332e-05/0.09345, allocations: 4 kB / 379.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.09347, allocations: 4 kB / 379.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.778e-05/0.09354, allocations: 7.984 kB / 379.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.09356, allocations: 4 kB / 379.7 MB, free: 14.41 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 8.661e-05/0.09365, allocations: 117.8 kB / 379.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.09367, allocations: 15.83 kB / 379.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.0937, allocations: 7.969 kB / 379.8 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.09371, allocations: 0 / 379.8 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.09372, allocations: 4 kB / 379.8 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.09373, allocations: 0 / 379.8 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.09385, allocations: 153.7 kB / 380 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.09386, allocations: 0 / 380 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.837e-05/0.09389, allocations: 7.984 kB / 380 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.0939, allocations: 3.938 kB / 380 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.09392, allocations: 0 / 380 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.09393, allocations: 8 kB / 380 MB, free: 14.04 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.09393, allocations: 0 / 380 MB, free: 14.04 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001774/0.09412, allocations: 113 kB / 380.1 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.09417, allocations: 84.95 kB / 380.2 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.09419, allocations: 0 / 380.2 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.287e-05/0.09425, allocations: 11.98 kB / 380.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.09431, allocations: 7.984 kB / 380.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.09433, allocations: 12 kB / 380.2 MB, free: 13.78 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.8e-05/0.09437, allocations: 75.28 kB / 380.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09438, allocations: 0 / 380.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001884/0.09457, allocations: 12 kB / 380.3 MB, free: 13.69 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 8.275e-05/0.09466, allocations: 91.25 kB / 380.4 MB, free: 13.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001684/0.09483, allocations: 51.91 kB / 380.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.09485, allocations: 4.219 kB / 380.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.835e-05/0.09493, allocations: 31.92 kB / 380.5 MB, free: 13.51 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.09507, allocations: 4 kB / 380.5 MB, free: 13.5 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.09541, allocations: 127.2 kB / 380.6 MB, free: 13.35 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.09567, allocations: 0.6809 MB / 381.3 MB, free: 12.64 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.58e-05/0.09571, allocations: 8 kB / 381.3 MB, free: 12.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.228e-05/0.09575, allocations: 15.31 kB / 381.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09576, allocations: 0 / 381.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of Templates: time 0.002519/0.09828, allocations: 0.533 MB / 381.9 MB, free: 12.09 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)