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.0011/0.0011, allocations: 181.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.006763/0.006763, allocations: 1.935 MB / 18.67 MB, free: 3.07 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.176/1.176, allocations: 205.1 MB / 225 MB, free: 4.828 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.0009116/0.0009116, allocations: 101.9 kB / 272.9 MB, free: 6.066 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009317/0.0009318, allocations: 55.92 kB / 330.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2023, allocations: 47.12 MB / 377.9 MB, free: 44.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.00188/0.2042, allocations: 1.354 MB / 379.3 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001164/0.2043, allocations: 34.42 kB / 379.3 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.147e-05/0.2043, allocations: 4 kB / 379.3 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.636e-05/0.2044, allocations: 0 / 379.3 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.22e-05/0.2044, allocations: 0 / 379.3 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001421/0.2045, allocations: 10.42 kB / 379.3 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.633e-05/0.2046, allocations: 22.08 kB / 379.3 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.035e-05/0.2047, allocations: 5.172 kB / 379.4 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.2047, allocations: 10.84 kB / 379.4 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.779e-05/0.2047, allocations: 20.5 kB / 379.4 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.2048, allocations: 2.312 kB / 379.4 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.059e-05/0.2048, allocations: 2.312 kB / 379.4 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.087e-05/0.2048, allocations: 13.14 kB / 379.4 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.799e-05/0.2048, allocations: 16.42 kB / 379.4 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.399e-05/0.2049, allocations: 16.53 kB / 379.4 MB, free: 43.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2049, allocations: 0 / 379.4 MB, free: 43.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2049, allocations: 0 / 379.4 MB, free: 43.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.2049, allocations: 1.281 kB / 379.4 MB, free: 43.38 MB / 298.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.0004094/0.2053, allocations: 346.1 kB / 379.8 MB, free: 43.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.2054, allocations: 14.19 kB / 379.8 MB, free: 43.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.2054, allocations: 10.41 kB / 379.8 MB, free: 43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.516e-05/0.2055, allocations: 165.7 kB / 380 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.146e-05/0.2055, allocations: 28.95 kB / 380 MB, free: 42.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.2055, allocations: 6.812 kB / 380 MB, free: 42.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.2056, allocations: 52.83 kB / 380 MB, free: 42.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2057, allocations: 3.938 kB / 380 MB, free: 42.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.2057, allocations: 1.062 kB / 380.1 MB, free: 42.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.2057, allocations: 0 / 380.1 MB, free: 42.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.914e-05/0.2058, allocations: 30.19 kB / 380.1 MB, free: 42.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.605e-05/0.2059, allocations: 158.6 kB / 380.2 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.299e-05/0.206, allocations: 40.86 kB / 380.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.065e-05/0.206, allocations: 12.64 kB / 380.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.206, allocations: 5.172 kB / 380.3 MB, free: 42.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000136/0.2062, allocations: 81.59 kB / 380.4 MB, free: 42.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.2062, allocations: 0 / 380.4 MB, free: 42.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002172/0.2064, allocations: 101.7 kB / 380.5 MB, free: 42.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.2064, allocations: 53.78 kB / 380.5 MB, free: 42.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.186e-05/0.2065, allocations: 104.2 kB / 380.6 MB, free: 42.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.2065, allocations: 27.3 kB / 380.7 MB, free: 42.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.105e-05/0.2065, allocations: 85.36 kB / 380.7 MB, free: 42.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.11e-05/0.2065, allocations: 14.56 kB / 380.7 MB, free: 42.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.2066, allocations: 27.83 kB / 380.8 MB, free: 41.99 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.408e-05/0.2066, allocations: 312.2 kB / 381.1 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.124e-05/0.2067, allocations: 19.52 kB / 381.1 MB, free: 41.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-05/0.2067, allocations: 44.72 kB / 381.1 MB, free: 41.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.07e-05/0.2068, allocations: 53.59 kB / 381.2 MB, free: 41.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2068, allocations: 1.438 kB / 381.2 MB, free: 41.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001343/0.207, allocations: 92.16 kB / 381.3 MB, free: 41.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.207, allocations: 9.625 kB / 381.3 MB, free: 41.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.207, allocations: 1.094 kB / 381.3 MB, free: 41.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.207, allocations: 5.25 kB / 381.3 MB, free: 41.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.443e-05/0.2071, allocations: 14.17 kB / 381.3 MB, free: 41.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2071, allocations: 1.406 kB / 381.3 MB, free: 41.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.05e-05/0.2072, allocations: 5.531 kB / 381.3 MB, free: 41.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.2072, allocations: 7.203 kB / 381.3 MB, free: 41.51 MB / 298.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,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 4.606e-05/0.2072, allocations: 119.1 kB / 381.4 MB, free: 41.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.04e-05/0.2072, allocations: 10.31 kB / 381.5 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.61e-05/0.2073, allocations: 7.969 kB / 381.5 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2073, allocations: 4.938 kB / 381.5 MB, free: 41.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2073, allocations: 3.938 kB / 381.5 MB, free: 41.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.2073, allocations: 1.5 kB / 381.5 MB, free: 41.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.619e-05/0.2073, allocations: 158.7 kB / 381.6 MB, free: 41.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2073, allocations: 5 kB / 381.6 MB, free: 41.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.588e-05/0.2074, allocations: 6.969 kB / 381.6 MB, free: 41.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2074, allocations: 9.125 kB / 381.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.2074, allocations: 0 / 381.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2074, allocations: 0.6562 kB / 381.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2074, allocations: 1 kB / 381.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.2077, allocations: 0.6767 MB / 382.3 MB, free: 40.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.539e-05/0.2077, allocations: 86.31 kB / 382.4 MB, free: 40.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.2077, allocations: 5.172 kB / 382.4 MB, free: 40.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.693e-05/0.2078, allocations: 4.531 kB / 382.4 MB, free: 40.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.937e-05/0.2078, allocations: 7.047 kB / 382.4 MB, free: 40.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.2078, allocations: 6.188 kB / 382.4 MB, free: 40.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.555e-05/0.2079, allocations: 85.67 kB / 382.5 MB, free: 40.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2079, allocations: 0 / 382.5 MB, free: 40.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000271/0.2081, allocations: 9.281 kB / 382.5 MB, free: 40.27 MB / 298.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) * 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 5.059e-05/0.2082, allocations: 93.31 kB / 382.6 MB, free: 40.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.2083, allocations: 53.09 kB / 382.7 MB, free: 40.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2083, allocations: 4.219 kB / 382.7 MB, free: 40.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.046e-05/0.2084, allocations: 28.39 kB / 382.7 MB, free: 40.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.2085, allocations: 4.891 kB / 382.7 MB, free: 40.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/0.2088, allocations: 253.2 kB / 383 MB, free: 39.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.546e-05/0.2089, allocations: 0.6796 MB / 383.6 MB, free: 39.19 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.782e-05/0.2089, allocations: 7.125 kB / 383.6 MB, free: 39.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.145e-05/0.209, allocations: 9.719 kB / 383.7 MB, free: 39.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.209, allocations: 0 / 383.7 MB, free: 39.18 MB / 298.7 MB Notification: Performance of Templates: time 0.001874/0.2108, allocations: 0.5599 MB / 384.2 MB, free: 38.89 MB / 298.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)