Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 104 kB / 16.37 MB, free: 6.367 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.001103/0.001102, allocations: 195.4 kB / 17.31 MB, free: 5.91 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.336/1.336, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007627/0.007627, allocations: 1.932 MB / 272.5 MB, free: 10.11 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.555e-05/2.558e-05, allocations: 6.219 kB / 331.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002626/0.002666, allocations: 1.531 MB / 332.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.003787, allocations: 0.7371 MB / 333.5 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.116e-05/0.003858, allocations: 3.938 kB / 333.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.003987, allocations: 55.84 kB / 333.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.886e-05/0.004092, allocations: 67.72 kB / 333.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.00461, allocations: 163.6 kB / 333.8 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.004833, allocations: 179.7 kB / 334 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.367e-05/0.004924, allocations: 15.98 kB / 334 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.005032, allocations: 79.75 kB / 334 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.005179, allocations: 87.7 kB / 334.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.005213, allocations: 12 kB / 334.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.005403, allocations: 151.9 kB / 334.3 MB, free: 12.19 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0001417/0.005552, allocations: 166.3 kB / 334.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 4.242e-05/0.005601, allocations: 90.56 kB / 334.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.684e-05/0.005653, allocations: 19.94 kB / 334.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.249e-05/0.005671, allocations: 4 kB / 334.6 MB, free: 11.91 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 (12) * Number of variables: 20 (20) Notification: Performance of Bindings: time 0.0006764/0.006353, allocations: 0.5855 MB / 335.1 MB, free: 11.22 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.535e-05/0.006456, allocations: 63.78 kB / 335.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0002948/0.00676, allocations: 356 kB / 335.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simplify1: time 2.25e-05/0.00679, allocations: 15.97 kB / 335.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of Alias: time 0.0003982/0.007194, allocations: 344.2 kB / 335.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of simplify2: time 1.164e-05/0.007215, allocations: 11.97 kB / 335.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of Events: time 0.0001604/0.00738, allocations: 95.8 kB / 336 MB, free: 10.26 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003484/0.007739, allocations: 204.4 kB / 336.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of Partitioning: time 0.000151/0.0079, allocations: 128.1 kB / 336.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of Causalize: time 0.0007071/0.008615, allocations: 0.6547 MB / 337 MB, free: 9.254 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003124/0.008936, allocations: 372.2 kB / 337.4 MB, free: 8.863 MB / 286.1 MB Notification: Performance of Inline: time 0.0005376/0.009482, allocations: 0.5717 MB / 337.9 MB, free: 8.254 MB / 286.1 MB Notification: Performance of Partitioning: time 3.334e-05/0.009525, allocations: 29.25 kB / 338 MB, free: 8.219 MB / 286.1 MB Notification: Performance of Cleanup: time 4.28e-05/0.009573, allocations: 39.89 kB / 338 MB, free: 8.18 MB / 286.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [TUPL] (4) ($FUN_1, $FUN_2, $FUN_3, $FUN_4) = MEV.Test.TestPatientController1.RR.getInterpolationCoefficients(RR.table, RR.offset, RR.startTime, time, RR.last, 1e-13, RR.shiftTime) ($RES_$AUX_19) slice: {3}; [TUPL] (4) ($FUN_5, $FUN_6, $FUN_7, $FUN_8) = MEV.Test.TestPatientController1.dutyCycle.getInterpolationCoefficients(dutyCycle.table, dutyCycle.offset, dutyCycle.startTime, time, dutyCycle.last, 1e-13, dutyCycle.shiftTime) ($RES_$AUX_18) slice: {3}; Notification: Performance of Causalize: time 0.001757/0.01134, allocations: 1.856 MB / 339.9 MB, free: 6.297 MB / 286.1 MB Error: Internal error NBEquation.IfEquationBody.getResidualExp failed for: if patientController.active then [SCAL] (1) patientController.t_off = time + (dutyCycle.y * (60.0 / RR.y)) / 100.0 ($RES_SIM_1) [SCAL] (1) patientController.t_on = time + 60.0 / RR.y ($RES_SIM_2) else [SCAL] (1) patientController.t_off = time ($RES_SIM_3) [SCAL] (1) patientController.t_on = time ($RES_SIM_4) end if; Error: Internal error NBInitialization.main failed to apply modules!