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.001042/0.001042, allocations: 104.4 kB / 19.71 MB, free: 436 kB / 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.00189/0.00189, allocations: 220.6 kB / 23 MB, free: 2.957 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.057/1.057, allocations: 230.6 MB / 256.8 MB, free: 9.617 MB / 202.7 MB " [Timeout remaining time 179] 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 0.7364/0.7364, allocations: 312.3 MB / 0.6108 GB, free: 97.14 MB / 410.7 MB " [Timeout remaining time 179] 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.001782/0.001782, allocations: 67.39 kB / 0.7699 GB, free: 19.65 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1191, allocations: 73.99 MB / 0.8422 GB, free: 9.789 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference): time 0.002812/0.122, allocations: 2.701 MB / 0.8448 GB, free: 7.09 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.00528/0.1272, allocations: 6.606 MB / 0.8513 GB, free: 496 kB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.1273, allocations: 0 / 0.8513 GB, free: 496 kB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.1275, allocations: 44.25 kB / 0.8513 GB, free: 452 kB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.1277, allocations: 116.2 kB / 0.8514 GB, free: 336 kB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.1279, allocations: 72.3 kB / 0.8515 GB, free: 264 kB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002918/0.1282, allocations: 382.6 kB / 0.8518 GB, free: 15.88 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.1283, allocations: 53.56 kB / 0.8519 GB, free: 15.83 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.1285, allocations: 143.5 kB / 0.852 GB, free: 15.69 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.1287, allocations: 140.4 kB / 0.8522 GB, free: 15.55 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.583e-05/0.1287, allocations: 24 kB / 0.8522 GB, free: 15.53 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.016e-05/0.1288, allocations: 24.69 kB / 0.8522 GB, free: 15.51 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.833e-05/0.1288, allocations: 56.34 kB / 0.8523 GB, free: 15.45 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1289, allocations: 135.4 kB / 0.8524 GB, free: 15.32 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.1292, allocations: 287.3 kB / 0.8527 GB, free: 15.04 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1292, allocations: 3.984 kB / 0.8527 GB, free: 15.04 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1293, allocations: 0.5625 kB / 0.8527 GB, free: 15.04 MB / 490.8 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1293, allocations: 4.5 kB / 0.8527 GB, free: 15.03 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.0008915/0.1302, allocations: 0.5979 MB / 0.8533 GB, free: 14.38 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1302, allocations: 12.75 kB / 0.8533 GB, free: 14.37 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.483e-05/0.1302, allocations: 32.75 kB / 0.8533 GB, free: 14.34 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.1307, allocations: 209.7 kB / 0.8535 GB, free: 14.11 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.1307, allocations: 13.41 kB / 0.8535 GB, free: 14.1 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.1308, allocations: 27.94 kB / 0.8535 GB, free: 14.07 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.1311, allocations: 288.5 kB / 0.8538 GB, free: 13.77 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.1311, allocations: 4.672 kB / 0.8538 GB, free: 13.76 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.1311, allocations: 8 kB / 0.8538 GB, free: 13.75 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1311, allocations: 4.562 kB / 0.8538 GB, free: 13.75 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002574/0.1314, allocations: 233.9 kB / 0.8541 GB, free: 13.51 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007616/0.1322, allocations: 0.6846 MB / 0.8547 GB, free: 12.79 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.1325, allocations: 239.3 kB / 0.855 GB, free: 12.53 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.1326, allocations: 149.1 kB / 0.8551 GB, free: 12.37 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.1327, allocations: 0.6562 kB / 0.8551 GB, free: 12.37 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.133, allocations: 360 kB / 0.8554 GB, free: 11.97 MB / 490.8 MB Notification: Performance of pre-optimization done (n=32): time 2.505e-06/0.133, allocations: 0 / 0.8554 GB, free: 11.97 MB / 490.8 MB Notification: Performance of matching and sorting (n=34): time 0.2559/0.3889, allocations: 1.076 MB / 0.8565 GB, free: 21.03 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.3889, allocations: 221.6 kB / 0.8567 GB, free: 20.78 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.3891, allocations: 251 kB / 0.8569 GB, free: 20.68 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3891, allocations: 34.3 kB / 0.857 GB, free: 20.64 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.699e-05/0.3892, allocations: 161.3 kB / 0.8571 GB, free: 20.55 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.3893, allocations: 110.9 kB / 0.8572 GB, free: 20.49 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.081e-05/0.3893, allocations: 74.55 kB / 0.8573 GB, free: 20.47 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 4.869e-05/0.3894, allocations: 343.2 kB / 0.8576 GB, free: 20.16 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.3895, allocations: 207.3 kB / 0.8578 GB, free: 20.05 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.3897, allocations: 320.8 kB / 0.8581 GB, free: 19.82 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.39, allocations: 432 kB / 0.8586 GB, free: 19.56 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.39, allocations: 0.5938 kB / 0.8586 GB, free: 19.56 MB / 490.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004239/0.3905, allocations: 0.5532 MB / 0.8591 GB, free: 19.32 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/0.3905, allocations: 92.23 kB / 0.8592 GB, free: 19.23 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3905, allocations: 4.688 kB / 0.8592 GB, free: 19.23 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.3905, allocations: 6.953 kB / 0.8592 GB, free: 19.23 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.3907, allocations: 81.06 kB / 0.8593 GB, free: 19.23 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.3907, allocations: 7.688 kB / 0.8593 GB, free: 19.23 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.3908, allocations: 23.59 kB / 0.8593 GB, free: 19.23 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.3908, allocations: 17.41 kB / 0.8593 GB, free: 19.23 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.0001545/0.391, allocations: 229.5 kB / 0.8595 GB, free: 19.04 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.391, allocations: 30.97 kB / 0.8596 GB, free: 19.02 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.391, allocations: 31.52 kB / 0.8596 GB, free: 19.02 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.391, allocations: 3.781 kB / 0.8596 GB, free: 19.02 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3911, allocations: 0 / 0.8596 GB, free: 19.02 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3911, allocations: 2.906 kB / 0.8596 GB, free: 19.02 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006107/0.3917, allocations: 0.7628 MB / 0.8603 GB, free: 18.66 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3917, allocations: 1.781 kB / 0.8603 GB, free: 18.66 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.3918, allocations: 52.42 kB / 0.8604 GB, free: 18.66 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3918, allocations: 4.375 kB / 0.8604 GB, free: 18.66 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.3918, allocations: 9.766 kB / 0.8604 GB, free: 18.66 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3918, allocations: 10.66 kB / 0.8604 GB, free: 18.66 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3918, allocations: 3.938 kB / 0.8604 GB, free: 18.65 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006603/0.3925, allocations: 0.7257 MB / 0.8611 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.3925, allocations: 21.98 kB / 0.8612 GB, free: 18.29 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.3926, allocations: 11.27 kB / 0.8612 GB, free: 18.29 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.97e-05/0.3927, allocations: 17.66 kB / 0.8612 GB, free: 18.29 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.818e-05/0.3927, allocations: 32.7 kB / 0.8612 GB, free: 18.29 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3928, allocations: 15.47 kB / 0.8612 GB, free: 18.29 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.000103/0.3929, allocations: 178.3 kB / 0.8614 GB, free: 18.21 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.3929, allocations: 0 / 0.8614 GB, free: 18.21 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002424/0.3931, allocations: 91.31 kB / 0.8615 GB, free: 18.21 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 9.415e-05/0.3932, allocations: 123.4 kB / 0.8616 GB, free: 18.12 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0004409/0.3936, allocations: 0.5641 MB / 0.8622 GB, free: 17.77 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3936, allocations: 3.375 kB / 0.8622 GB, free: 17.77 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.3938, allocations: 299 kB / 0.8624 GB, free: 17.59 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.3942, allocations: 85.44 kB / 0.8625 GB, free: 17.59 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.3954, allocations: 0.9608 MB / 0.8635 GB, free: 17.11 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.3955, allocations: 164.2 kB / 0.8636 GB, free: 17.02 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.3956, allocations: 29 kB / 0.8636 GB, free: 17.02 MB / 490.8 MB Notification: Performance of SimCode: time 1.032e-06/0.3956, allocations: 0 / 0.8636 GB, free: 17.02 MB / 490.8 MB Notification: Performance of Templates: time 0.005372/0.4009, allocations: 4.016 MB / 0.8676 GB, free: 16.67 MB / 490.8 MB " [Timeout remaining time 660] 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 > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone_Balyan2020_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.285570805892348]