Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.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.002419/0.002419, allocations: 109.5 kB / 18.95 MB, free: 1.18 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.00295/0.00295, allocations: 214.4 kB / 22.25 MB, free: 3.582 MB / 13.93 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.75/1.75, allocations: 230.6 MB / 256 MB, free: 9.578 MB / 202.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.449/1.449, allocations: 316.7 MB / 0.6144 GB, free: 92.82 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_Balyan2020_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference") [Timeout 660] "Notification: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00375/0.00375, allocations: 73.67 kB / 0.775 GB, free: 14.6 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2074, allocations: 73.99 MB / 0.8472 GB, free: 4.75 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference): time 0.007635/0.215, allocations: 2.704 MB / 0.8499 GB, free: 2.047 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.384/0.599, allocations: 6.601 MB / 0.8563 GB, free: 22 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002879/0.5993, allocations: 4.062 kB / 0.8563 GB, free: 22 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.5995, allocations: 38.05 kB / 0.8564 GB, free: 22 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002936/0.5998, allocations: 116.2 kB / 0.8565 GB, free: 22 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.6001, allocations: 79.09 kB / 0.8566 GB, free: 22 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003597/0.6004, allocations: 373.2 kB / 0.8569 GB, free: 21.94 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.6006, allocations: 52.95 kB / 0.857 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.6007, allocations: 145.6 kB / 0.8571 GB, free: 21.91 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.601, allocations: 144.5 kB / 0.8572 GB, free: 21.88 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 5.251e-05/0.6011, allocations: 23.19 kB / 0.8573 GB, free: 21.88 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.955e-05/0.6011, allocations: 24.19 kB / 0.8573 GB, free: 21.88 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.869e-05/0.6012, allocations: 57.23 kB / 0.8573 GB, free: 21.86 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.6013, allocations: 131.7 kB / 0.8575 GB, free: 21.83 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003264/0.6016, allocations: 287 kB / 0.8577 GB, free: 21.78 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.6017, allocations: 0 / 0.8577 GB, free: 21.78 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.883e-06/0.6017, allocations: 0.8438 kB / 0.8577 GB, free: 21.78 MB / 490.8 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.6017, allocations: 0 / 0.8577 GB, free: 21.78 MB / 490.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.001002/0.6027, allocations: 0.6066 MB / 0.8583 GB, free: 21.31 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.6027, allocations: 8.75 kB / 0.8583 GB, free: 21.31 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.6028, allocations: 33.66 kB / 0.8584 GB, free: 21.3 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.603, allocations: 210.6 kB / 0.8586 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.6031, allocations: 15.22 kB / 0.8586 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.853e-05/0.6031, allocations: 26.81 kB / 0.8586 GB, free: 21.14 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004425/0.6036, allocations: 289.6 kB / 0.8589 GB, free: 21.02 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.6036, allocations: 8.156 kB / 0.8589 GB, free: 21.02 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.6036, allocations: 4.438 kB / 0.8589 GB, free: 21.02 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.6036, allocations: 6.531 kB / 0.8589 GB, free: 21.02 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.604, allocations: 236.1 kB / 0.8591 GB, free: 20.95 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.6051, allocations: 0.6762 MB / 0.8598 GB, free: 20.6 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004758/0.6055, allocations: 235 kB / 0.86 GB, free: 20.51 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.6057, allocations: 148.5 kB / 0.8602 GB, free: 20.44 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.6058, allocations: 2.75 kB / 0.8602 GB, free: 20.44 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.6061, allocations: 371 kB / 0.8605 GB, free: 20.19 MB / 490.8 MB Notification: Performance of pre-optimization done (n=32): time 1.453e-06/0.6061, allocations: 0.625 kB / 0.8605 GB, free: 20.19 MB / 490.8 MB Notification: Performance of matching and sorting (n=34): time 0.001695/0.6078, allocations: 1.076 MB / 0.8616 GB, free: 19.65 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.6079, allocations: 220.6 kB / 0.8618 GB, free: 19.4 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.6081, allocations: 245.5 kB / 0.862 GB, free: 19.29 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.6081, allocations: 38.61 kB / 0.8621 GB, free: 19.26 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.833e-05/0.6082, allocations: 156.3 kB / 0.8622 GB, free: 19.15 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.45e-05/0.6083, allocations: 116.2 kB / 0.8623 GB, free: 19.07 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.198e-05/0.6084, allocations: 72.39 kB / 0.8624 GB, free: 19.06 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 6.196e-05/0.6084, allocations: 342.5 kB / 0.8627 GB, free: 18.75 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.6087, allocations: 208.6 kB / 0.8629 GB, free: 18.64 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.609, allocations: 319.6 kB / 0.8632 GB, free: 18.41 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005005/0.6095, allocations: 431.3 kB / 0.8636 GB, free: 18.14 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.6095, allocations: 1.906 kB / 0.8636 GB, free: 18.14 MB / 490.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007721/0.6103, allocations: 0.548 MB / 0.8642 GB, free: 17.89 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.75e-05/0.6103, allocations: 92.56 kB / 0.8642 GB, free: 17.79 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.6103, allocations: 4.094 kB / 0.8643 GB, free: 17.79 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.6103, allocations: 8.312 kB / 0.8643 GB, free: 17.79 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003032/0.6106, allocations: 78.11 kB / 0.8643 GB, free: 17.79 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.6107, allocations: 7.766 kB / 0.8643 GB, free: 17.79 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.6109, allocations: 26.61 kB / 0.8644 GB, free: 17.78 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/0.6109, allocations: 15.95 kB / 0.8644 GB, free: 17.78 MB / 490.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.0001921/0.6111, allocations: 225.1 kB / 0.8646 GB, free: 17.6 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.271e-05/0.6111, allocations: 32.41 kB / 0.8646 GB, free: 17.58 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.768e-05/0.6112, allocations: 31.02 kB / 0.8647 GB, free: 17.57 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.6112, allocations: 4.516 kB / 0.8647 GB, free: 17.57 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.6112, allocations: 0.75 kB / 0.8647 GB, free: 17.57 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.6112, allocations: 6.219 kB / 0.8647 GB, free: 17.57 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.6122, allocations: 0.7684 MB / 0.8654 GB, free: 17.19 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.6122, allocations: 3.219 kB / 0.8654 GB, free: 17.19 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.6125, allocations: 51.67 kB / 0.8655 GB, free: 17.19 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.6125, allocations: 0.9688 kB / 0.8655 GB, free: 17.19 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.6125, allocations: 16.25 kB / 0.8655 GB, free: 17.18 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.6125, allocations: 1.844 kB / 0.8655 GB, free: 17.18 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.6125, allocations: 4.5 kB / 0.8655 GB, free: 17.18 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.6136, allocations: 0.724 MB / 0.8662 GB, free: 16.83 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.6136, allocations: 28.47 kB / 0.8662 GB, free: 16.82 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.05e-05/0.6137, allocations: 14.48 kB / 0.8662 GB, free: 16.81 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.6139, allocations: 19.19 kB / 0.8663 GB, free: 16.81 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.614, allocations: 30.2 kB / 0.8663 GB, free: 16.81 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.614, allocations: 12.95 kB / 0.8663 GB, free: 16.81 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.000171/0.6142, allocations: 179.5 kB / 0.8665 GB, free: 16.73 MB / 490.8 MB Notification: Performance of sort global known variables: time 6e-08/0.6142, allocations: 0 / 0.8665 GB, free: 16.73 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0003525/0.6145, allocations: 85.62 kB / 0.8666 GB, free: 16.73 MB / 490.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.00013/0.6147, allocations: 121 kB / 0.8667 GB, free: 16.64 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0007384/0.6154, allocations: 0.5722 MB / 0.8672 GB, free: 16.28 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6154, allocations: 0.5 kB / 0.8672 GB, free: 16.28 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003279/0.6157, allocations: 300.1 kB / 0.8675 GB, free: 16.09 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005535/0.6163, allocations: 89.31 kB / 0.8676 GB, free: 16.09 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.6179, allocations: 0.9411 MB / 0.8685 GB, free: 15.59 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.618, allocations: 159.8 kB / 0.8687 GB, free: 15.51 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.6181, allocations: 35.7 kB / 0.8687 GB, free: 15.51 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.881e-05/0.6182, allocations: 29.19 kB / 0.8687 GB, free: 15.5 MB / 490.8 MB Notification: Performance of SimCode: time 6.31e-07/0.6182, allocations: 5.312 kB / 0.8687 GB, free: 15.5 MB / 490.8 MB Notification: Performance of Templates: time 0.01035/0.6285, allocations: 4.998 MB / 0.8736 GB, free: 14.99 MB / 490.8 MB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.021004053996876]