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.00125/0.00125, allocations: 92 kB / 15.06 MB, free: 1.098 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.00141/0.001411, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01114/0.01114, allocations: 1.92 MB / 272.3 MB, free: 3.398 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.0008716/0.0008718, allocations: 16 kB / 330.9 MB, free: 33.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1336, allocations: 48.1 MB / 379 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001737/0.1354, allocations: 1.003 MB / 380 MB, free: 188 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002046/0.1356, allocations: 31.84 kB / 380 MB, free: 156 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.678e-05/0.1357, allocations: 4 kB / 380 MB, free: 152 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.67e-05/0.1357, allocations: 0 / 380 MB, free: 152 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.084e-05/0.1357, allocations: 7.922 kB / 380 MB, free: 144 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001642/0.1359, allocations: 3.984 kB / 380 MB, free: 140 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.441e-05/0.136, allocations: 27.97 kB / 380.1 MB, free: 112 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.765e-05/0.1361, allocations: 4 kB / 380.1 MB, free: 108 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.343e-05/0.1361, allocations: 15.92 kB / 380.1 MB, free: 92 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.576e-05/0.1362, allocations: 11.98 kB / 380.1 MB, free: 80 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.1362, allocations: 0 / 380.1 MB, free: 80 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.052e-05/0.1363, allocations: 4 kB / 380.1 MB, free: 76 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.463e-05/0.1363, allocations: 7.984 kB / 380.1 MB, free: 68 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.441e-05/0.1364, allocations: 33.64 kB / 380.1 MB, free: 28 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 5.485e-05/0.1364, allocations: 7.984 kB / 380.1 MB, free: 20 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1364, allocations: 0 / 380.1 MB, free: 20 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1364, allocations: 0 / 380.1 MB, free: 20 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1365, allocations: 0 / 380.1 MB, free: 20 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.0006549/0.1371, allocations: 351.6 kB / 380.5 MB, free: 15.63 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1372, allocations: 12.03 kB / 380.5 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.84e-05/0.1372, allocations: 3.906 kB / 380.5 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1373, allocations: 163.1 kB / 380.7 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.1375, allocations: 33.69 kB / 380.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.1375, allocations: 15.89 kB / 380.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001664/0.1377, allocations: 49.67 kB / 380.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1377, allocations: 0 / 380.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.1377, allocations: 0 / 380.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1377, allocations: 0 / 380.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.106e-05/0.1378, allocations: 23.92 kB / 380.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001992/0.138, allocations: 169.6 kB / 381 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.1382, allocations: 42.61 kB / 381 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.82e-05/0.1382, allocations: 16.94 kB / 381 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.1382, allocations: 0 / 381 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002358/0.1385, allocations: 87.27 kB / 381.1 MB, free: 14.9 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.784e-06/0.1385, allocations: 0 / 381.1 MB, free: 14.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003229/0.1388, allocations: 101.6 kB / 381.2 MB, free: 14.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.1389, allocations: 59.39 kB / 381.3 MB, free: 14.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.139, allocations: 97.86 kB / 381.3 MB, free: 14.62 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.139, allocations: 29.7 kB / 381.4 MB, free: 14.58 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.436e-05/0.139, allocations: 84.05 kB / 381.5 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.1391, allocations: 23.81 kB / 381.5 MB, free: 14.47 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.1391, allocations: 0 / 381.5 MB, free: 14.47 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1392, allocations: 314.8 kB / 381.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.884e-05/0.1393, allocations: 23.98 kB / 381.8 MB, free: 14.13 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.18e-05/0.1394, allocations: 50.56 kB / 381.9 MB, free: 14.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.663e-05/0.1394, allocations: 20.3 kB / 381.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1394, allocations: 0 / 381.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002084/0.1396, allocations: 93.47 kB / 382 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1397, allocations: 12.06 kB / 382 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1397, allocations: 3.984 kB / 382 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1397, allocations: 0 / 382 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.477e-05/0.1398, allocations: 8 kB / 382 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.1398, allocations: 4 kB / 382 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.262e-05/0.1399, allocations: 11.98 kB / 382 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.1399, allocations: 4 kB / 382 MB, free: 13.91 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 0.0001213/0.14, allocations: 121.8 kB / 382.1 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/0.1401, allocations: 7.859 kB / 382.1 MB, free: 13.78 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.1401, allocations: 3.969 kB / 382.1 MB, free: 13.78 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.1401, allocations: 4 kB / 382.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.1401, allocations: 3.938 kB / 382.2 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1402, allocations: 3.984 kB / 382.2 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.1403, allocations: 157.7 kB / 382.3 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1403, allocations: 0 / 382.3 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-05/0.1404, allocations: 8 kB / 382.3 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.1404, allocations: 4 kB / 382.3 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.1404, allocations: 15.94 kB / 382.3 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1404, allocations: 0 / 382.3 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1404, allocations: 0 / 382.3 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000189/0.1406, allocations: 109 kB / 382.4 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.363e-05/0.1407, allocations: 81.02 kB / 382.5 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.1407, allocations: 11.97 kB / 382.5 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.066e-05/0.1407, allocations: 11.95 kB / 382.5 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.983e-05/0.1408, allocations: 7.984 kB / 382.6 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.1408, allocations: 3.984 kB / 382.6 MB, free: 13.28 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.132e-05/0.1409, allocations: 83.28 kB / 382.6 MB, free: 13.2 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1409, allocations: 0 / 382.6 MB, free: 13.2 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001968/0.1411, allocations: 8 kB / 382.6 MB, free: 13.19 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 0.000102/0.1412, allocations: 95.44 kB / 382.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001954/0.1414, allocations: 60 kB / 382.8 MB, free: 13.03 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1414, allocations: 3.938 kB / 382.8 MB, free: 13.02 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.937e-05/0.1415, allocations: 27.97 kB / 382.8 MB, free: 13 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.1417, allocations: 7.938 kB / 382.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003537/0.142, allocations: 140.8 kB / 383 MB, free: 12.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.1424, allocations: 0.6809 MB / 383.7 MB, free: 12.11 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.645e-05/0.1424, allocations: 192 / 383.7 MB, free: 12.11 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.854e-05/0.1425, allocations: 15.38 kB / 383.7 MB, free: 12.09 MB / 286.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1425, allocations: 0 / 383.7 MB, free: 12.09 MB / 286.1 MB Notification: Performance of Templates: time 0.002808/0.1453, allocations: 0.4973 MB / 384.2 MB, free: 11.6 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: