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.002118/0.002118, allocations: 105.5 kB / 18.95 MB, free: 1.176 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.002547/0.002547, allocations: 218.4 kB / 22.25 MB, free: 3.57 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.757/1.757, allocations: 230.6 MB / 256 MB, free: 9.602 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.465/1.465, allocations: 316.7 MB / 0.6144 GB, free: 93.11 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: 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.004664/0.004664, allocations: 81.3 kB / 0.775 GB, free: 14.73 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1903, allocations: 73.99 MB / 0.8473 GB, free: 4.879 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone): time 0.006324/0.1966, allocations: 2.71 MB / 0.8499 GB, free: 2.168 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.4214/0.618, allocations: 6.6 MB / 0.8564 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002582/0.6182, allocations: 0.7188 kB / 0.8564 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.6184, allocations: 39.55 kB / 0.8564 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003559/0.6188, allocations: 122.8 kB / 0.8565 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.6191, allocations: 66.75 kB / 0.8566 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.6195, allocations: 381.7 kB / 0.857 GB, free: 21.88 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.6197, allocations: 52.62 kB / 0.857 GB, free: 21.88 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.6199, allocations: 145.5 kB / 0.8572 GB, free: 21.85 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.6201, allocations: 136.6 kB / 0.8573 GB, free: 21.82 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 4.933e-05/0.6202, allocations: 25.72 kB / 0.8573 GB, free: 21.82 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 6.38e-05/0.6202, allocations: 23.94 kB / 0.8573 GB, free: 21.82 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 6.006e-05/0.6203, allocations: 58.55 kB / 0.8574 GB, free: 21.8 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.6205, allocations: 133.3 kB / 0.8575 GB, free: 21.77 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003822/0.6208, allocations: 293.2 kB / 0.8578 GB, free: 21.72 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.6208, allocations: 0 / 0.8578 GB, free: 21.72 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.943e-06/0.6208, allocations: 0.9688 kB / 0.8578 GB, free: 21.72 MB / 490.8 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.6209, allocations: 0 / 0.8578 GB, free: 21.72 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.001004/0.6219, allocations: 0.5976 MB / 0.8584 GB, free: 21.26 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.6219, allocations: 12.64 kB / 0.8584 GB, free: 21.25 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.748e-05/0.622, allocations: 34.12 kB / 0.8584 GB, free: 21.24 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.6222, allocations: 220.6 kB / 0.8586 GB, free: 21.08 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.6223, allocations: 14.59 kB / 0.8586 GB, free: 21.08 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.6223, allocations: 25.25 kB / 0.8587 GB, free: 21.07 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/0.6228, allocations: 290 kB / 0.8589 GB, free: 20.96 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.6228, allocations: 3.953 kB / 0.859 GB, free: 20.95 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.6228, allocations: 10.62 kB / 0.859 GB, free: 20.95 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.6229, allocations: 3.625 kB / 0.859 GB, free: 20.95 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004609/0.6233, allocations: 231.2 kB / 0.8592 GB, free: 20.89 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.6246, allocations: 0.6808 MB / 0.8599 GB, free: 20.54 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/0.6251, allocations: 235.4 kB / 0.8601 GB, free: 20.45 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.6254, allocations: 153.7 kB / 0.8602 GB, free: 20.37 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.6254, allocations: 3.438 kB / 0.8602 GB, free: 20.37 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004207/0.6258, allocations: 364.8 kB / 0.8606 GB, free: 20.13 MB / 490.8 MB Notification: Performance of pre-optimization done (n=32): time 1.563e-06/0.6258, allocations: 0.625 kB / 0.8606 GB, free: 20.13 MB / 490.8 MB Notification: Performance of matching and sorting (n=34): time 0.001765/0.6276, allocations: 1.082 MB / 0.8616 GB, free: 19.59 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.6276, allocations: 216.7 kB / 0.8618 GB, free: 19.34 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.6279, allocations: 245.5 kB / 0.8621 GB, free: 19.23 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.6279, allocations: 39.09 kB / 0.8621 GB, free: 19.2 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.403e-05/0.628, allocations: 160.1 kB / 0.8623 GB, free: 19.09 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.953e-05/0.628, allocations: 117.2 kB / 0.8624 GB, free: 19.02 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.595e-05/0.6281, allocations: 72.86 kB / 0.8624 GB, free: 19 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 6.618e-05/0.6282, allocations: 342.8 kB / 0.8628 GB, free: 18.69 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.6284, allocations: 207.4 kB / 0.863 GB, free: 18.59 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.6287, allocations: 318.8 kB / 0.8633 GB, free: 18.36 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.6293, allocations: 430.5 kB / 0.8637 GB, free: 18.09 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.6293, allocations: 2.375 kB / 0.8637 GB, free: 18.09 MB / 490.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007916/0.63, allocations: 0.548 MB / 0.8642 GB, free: 17.83 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.079e-05/0.6301, allocations: 92.55 kB / 0.8643 GB, free: 17.74 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.6301, allocations: 3.594 kB / 0.8643 GB, free: 17.74 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.6301, allocations: 5.75 kB / 0.8643 GB, free: 17.74 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.6305, allocations: 82.62 kB / 0.8644 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.6305, allocations: 7.219 kB / 0.8644 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.6307, allocations: 27.33 kB / 0.8644 GB, free: 17.73 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.6307, allocations: 18.36 kB / 0.8644 GB, free: 17.73 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.0002537/0.631, allocations: 221.3 kB / 0.8647 GB, free: 17.54 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.313e-05/0.631, allocations: 36.44 kB / 0.8647 GB, free: 17.53 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.066e-05/0.6311, allocations: 30.83 kB / 0.8647 GB, free: 17.52 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.6311, allocations: 2.75 kB / 0.8647 GB, free: 17.52 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.6311, allocations: 2.391 kB / 0.8647 GB, free: 17.52 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.6311, allocations: 5.734 kB / 0.8647 GB, free: 17.52 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.6324, allocations: 0.7701 MB / 0.8655 GB, free: 17.14 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.6324, allocations: 2.188 kB / 0.8655 GB, free: 17.14 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.6326, allocations: 51.36 kB / 0.8655 GB, free: 17.14 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.6326, allocations: 1.922 kB / 0.8655 GB, free: 17.14 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/0.6327, allocations: 16.25 kB / 0.8656 GB, free: 17.14 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.6327, allocations: 1.156 kB / 0.8656 GB, free: 17.14 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.6327, allocations: 0 / 0.8656 GB, free: 17.14 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.6337, allocations: 0.7336 MB / 0.8663 GB, free: 16.79 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.17e-05/0.6338, allocations: 27.61 kB / 0.8663 GB, free: 16.77 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.6338, allocations: 16.11 kB / 0.8663 GB, free: 16.77 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.634, allocations: 16.22 kB / 0.8663 GB, free: 16.77 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.6341, allocations: 28.64 kB / 0.8664 GB, free: 16.77 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.731e-05/0.6342, allocations: 15.45 kB / 0.8664 GB, free: 16.77 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001997/0.6344, allocations: 176.1 kB / 0.8665 GB, free: 16.69 MB / 490.8 MB Notification: Performance of sort global known variables: time 8e-08/0.6344, allocations: 0 / 0.8665 GB, free: 16.69 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0003932/0.6348, allocations: 87.98 kB / 0.8666 GB, free: 16.69 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.0001619/0.6349, allocations: 123.7 kB / 0.8667 GB, free: 16.59 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0008323/0.6358, allocations: 0.568 MB / 0.8673 GB, free: 16.23 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6358, allocations: 1.969 kB / 0.8673 GB, free: 16.23 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.6361, allocations: 302 kB / 0.8676 GB, free: 16.04 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005703/0.6367, allocations: 83.52 kB / 0.8677 GB, free: 16.04 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.6383, allocations: 0.9343 MB / 0.8686 GB, free: 15.55 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.6384, allocations: 158.5 kB / 0.8687 GB, free: 15.47 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.000153/0.6386, allocations: 35.75 kB / 0.8688 GB, free: 15.47 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.974e-05/0.6387, allocations: 29.97 kB / 0.8688 GB, free: 15.46 MB / 490.8 MB Notification: Performance of SimCode: time 6.72e-07/0.6387, allocations: 5.312 kB / 0.8688 GB, free: 15.45 MB / 490.8 MB Notification: Performance of Templates: time 0.01127/0.6499, allocations: 4.987 MB / 0.8737 GB, free: 14.95 MB / 490.8 MB " [Timeout remaining time 659] 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: 8.049167226999998]