Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002351/0.002351, allocations: 84.44 kB / 19.17 MB, free: 0.7383 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.006553/0.006553, allocations: 169.9 kB / 22.46 MB, free: 2.102 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.584/1.584, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 1.413/1.413, allocations: 292.9 MB / 0.5392 GB, free: 50.18 MB / 410.7 MB " [Timeout remaining time 178] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 0.6999 GB, free: 8.469 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.254e-05/3.393e-05, allocations: 2.281 kB / 0.6999 GB, free: 8.465 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone): time 0.003869/0.003903, allocations: 2.713 MB / 0.7026 GB, free: 5.73 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.008088/0.01199, allocations: 6.6 MB / 0.709 GB, free: 15.12 MB / 426.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.01228, allocations: 7.938 kB / 0.709 GB, free: 15.11 MB / 426.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.01248, allocations: 39.62 kB / 0.7091 GB, free: 15.07 MB / 426.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0004082/0.01289, allocations: 130.9 kB / 0.7092 GB, free: 14.95 MB / 426.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.01324, allocations: 75.83 kB / 0.7093 GB, free: 14.87 MB / 426.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005575/0.01379, allocations: 389.9 kB / 0.7096 GB, free: 14.49 MB / 426.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.014, allocations: 56.83 kB / 0.7097 GB, free: 14.44 MB / 426.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003186/0.01432, allocations: 203.6 kB / 0.7099 GB, free: 14.24 MB / 426.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003054/0.01463, allocations: 119.6 kB / 0.71 GB, free: 14.12 MB / 426.8 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-05/0.01468, allocations: 24 kB / 0.71 GB, free: 14.1 MB / 426.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.222e-05/0.01474, allocations: 28 kB / 0.7101 GB, free: 14.07 MB / 426.8 MB Notification: Performance of NFScalarize.scalarize: time 7.032e-05/0.01481, allocations: 55.7 kB / 0.7101 GB, free: 14.02 MB / 426.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.01497, allocations: 119.7 kB / 0.7102 GB, free: 13.9 MB / 426.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.01542, allocations: 291 kB / 0.7105 GB, free: 13.61 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.01543, allocations: 3.938 kB / 0.7105 GB, free: 13.61 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.014e-06/0.01543, allocations: 0 / 0.7105 GB, free: 13.61 MB / 426.8 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.01543, allocations: 0 / 0.7105 GB, free: 13.61 MB / 426.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001302/0.01674, allocations: 0.6002 MB / 0.7111 GB, free: 12.96 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.01679, allocations: 15.89 kB / 0.7111 GB, free: 12.94 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.202e-05/0.01688, allocations: 32.75 kB / 0.7111 GB, free: 12.91 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.01724, allocations: 212.7 kB / 0.7113 GB, free: 12.68 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/0.01728, allocations: 12.75 kB / 0.7114 GB, free: 12.67 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.964e-05/0.01734, allocations: 24.38 kB / 0.7114 GB, free: 12.64 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005731/0.01791, allocations: 292.5 kB / 0.7117 GB, free: 12.34 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.01793, allocations: 3.953 kB / 0.7117 GB, free: 12.33 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.01796, allocations: 8 kB / 0.7117 GB, free: 12.32 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.01797, allocations: 11.94 kB / 0.7117 GB, free: 12.31 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005381/0.01851, allocations: 228.5 kB / 0.7119 GB, free: 12.07 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.01988, allocations: 0.6795 MB / 0.7126 GB, free: 11.36 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006322/0.02051, allocations: 242.7 kB / 0.7128 GB, free: 11.09 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.02079, allocations: 148.4 kB / 0.7129 GB, free: 10.93 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.02081, allocations: 3.984 kB / 0.7129 GB, free: 10.93 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005835/0.02139, allocations: 365.5 kB / 0.7133 GB, free: 10.52 MB / 426.8 MB Notification: Performance of pre-optimization done (n=32): time 1.463e-06/0.02139, allocations: 0 / 0.7133 GB, free: 10.52 MB / 426.8 MB Notification: Performance of matching and sorting (n=34): time 0.002274/0.02367, allocations: 1.082 MB / 0.7143 GB, free: 9.352 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/0.02383, allocations: 221.6 kB / 0.7146 GB, free: 9.086 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.02414, allocations: 241.9 kB / 0.7148 GB, free: 8.844 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/0.0242, allocations: 41.69 kB / 0.7148 GB, free: 8.797 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.02434, allocations: 160.8 kB / 0.715 GB, free: 8.633 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.02446, allocations: 107.1 kB / 0.7151 GB, free: 8.527 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.02459, allocations: 78.19 kB / 0.7152 GB, free: 8.441 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.02481, allocations: 342.8 kB / 0.7155 GB, free: 8.098 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003754/0.02519, allocations: 211.9 kB / 0.7157 GB, free: 7.871 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004487/0.02563, allocations: 315.1 kB / 0.716 GB, free: 7.504 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006861/0.02632, allocations: 431.4 kB / 0.7164 GB, free: 7.016 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.02633, allocations: 4 kB / 0.7164 GB, free: 7.012 MB / 426.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000962/0.02729, allocations: 0.5497 MB / 0.7169 GB, free: 6.418 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.191e-05/0.02737, allocations: 85.11 kB / 0.717 GB, free: 6.316 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.609e-06/0.02738, allocations: 7.938 kB / 0.717 GB, free: 6.309 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.0274, allocations: 4 kB / 0.717 GB, free: 6.305 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.02772, allocations: 75.89 kB / 0.7171 GB, free: 6.23 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.02774, allocations: 11.98 kB / 0.7171 GB, free: 6.219 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.02796, allocations: 24.33 kB / 0.7171 GB, free: 6.195 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.028, allocations: 16 kB / 0.7171 GB, free: 6.18 MB / 426.8 MB Warning: Assuming fixed start value for the following 1 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 21 (peripheral.Cmin,$PRE.peripheral.Cmin,peripheral.Cmax,$PRE.peripheral.Cmax,central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,peripheral.rising,$PRE.peripheral.rising,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.central.rising,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0003148/0.02831, allocations: 227 kB / 0.7174 GB, free: 5.934 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.02837, allocations: 31.81 kB / 0.7174 GB, free: 5.902 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.346e-05/0.02844, allocations: 34.89 kB / 0.7174 GB, free: 5.867 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.02845, allocations: 4 kB / 0.7174 GB, free: 5.863 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.02846, allocations: 0 / 0.7174 GB, free: 5.863 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.02846, allocations: 7.984 kB / 0.7174 GB, free: 5.855 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001306/0.02977, allocations: 0.7639 MB / 0.7182 GB, free: 5.031 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.02977, allocations: 0 / 0.7182 GB, free: 5.031 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/0.03006, allocations: 47.97 kB / 0.7182 GB, free: 4.984 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.03007, allocations: 0 / 0.7182 GB, free: 4.984 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.0301, allocations: 15.98 kB / 0.7182 GB, free: 4.969 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.03011, allocations: 7.938 kB / 0.7183 GB, free: 4.961 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.03011, allocations: 3.938 kB / 0.7183 GB, free: 4.957 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.03133, allocations: 0.7192 MB / 0.719 GB, free: 4.18 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.278e-05/0.03138, allocations: 27.8 kB / 0.719 GB, free: 4.152 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.858e-05/0.03144, allocations: 12.06 kB / 0.719 GB, free: 4.141 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.03165, allocations: 19.98 kB / 0.719 GB, free: 4.121 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.03175, allocations: 31.88 kB / 0.719 GB, free: 4.09 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.03179, allocations: 15.98 kB / 0.7191 GB, free: 4.074 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.000214/0.032, allocations: 177.2 kB / 0.7192 GB, free: 3.902 MB / 426.8 MB Notification: Performance of sort global known variables: time 9e-08/0.032, allocations: 0 / 0.7192 GB, free: 3.902 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0003666/0.03237, allocations: 92 kB / 0.7193 GB, free: 3.812 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,peripheral.C,peripheral.AUC) * Number of discrete variables: 13 ($whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count,peripheral.Cmax,peripheral.Cmin,peripheral.rising) * Number of discrete states: 11 (periodicDose.pulse.count,peripheral.Cmin,$whenCondition4,peripheral.Cmax,$whenCondition3,peripheral.rising,central.Cmin,$whenCondition2,central.Cmax,$whenCondition1,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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 0.0001777/0.03254, allocations: 122.9 kB / 0.7194 GB, free: 3.688 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.2239/0.2564, allocations: 0.5571 MB / 0.72 GB, free: 37.08 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.2564, allocations: 1.625 kB / 0.72 GB, free: 37.08 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005168/0.257, allocations: 299.3 kB / 0.7203 GB, free: 36.89 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000819/0.2578, allocations: 86.53 kB / 0.7204 GB, free: 36.89 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.2595, allocations: 0.7945 MB / 0.7211 GB, free: 36.49 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.2596, allocations: 161.6 kB / 0.7213 GB, free: 36.41 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.2598, allocations: 37.25 kB / 0.7213 GB, free: 36.4 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.978e-05/0.2599, allocations: 26.47 kB / 0.7213 GB, free: 36.39 MB / 426.8 MB Notification: Performance of SimCode: time 9.92e-07/0.2599, allocations: 0 / 0.7213 GB, free: 36.39 MB / 426.8 MB Notification: Performance of Templates: time 0.01295/0.2728, allocations: 4.546 MB / 0.7258 GB, free: 35.96 MB / 426.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.133084023837]