Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_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.00198/0.00198, 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.002146/0.002146, 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.733/1.733, 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.04 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.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_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.003827/0.003827, allocations: 77.44 kB / 0.775 GB, free: 14.73 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.152, allocations: 73.99 MB / 0.8472 GB, free: 4.875 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference): time 0.004114/0.1561, allocations: 2.291 MB / 0.8495 GB, free: 2.586 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.2917/0.4478, allocations: 6.526 MB / 0.8558 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.448, allocations: 4.344 kB / 0.8558 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.4482, allocations: 25.55 kB / 0.8559 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.4484, allocations: 83.14 kB / 0.8559 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002176/0.4486, allocations: 54.69 kB / 0.856 GB, free: 21.93 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.4489, allocations: 255.5 kB / 0.8562 GB, free: 21.91 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.449, allocations: 35.41 kB / 0.8563 GB, free: 21.9 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.4491, allocations: 101.1 kB / 0.8564 GB, free: 21.89 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.4493, allocations: 96.23 kB / 0.8565 GB, free: 21.87 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.342e-05/0.4494, allocations: 16.47 kB / 0.8565 GB, free: 21.87 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.086e-05/0.4494, allocations: 17.72 kB / 0.8565 GB, free: 21.87 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 3.675e-05/0.4494, allocations: 39.64 kB / 0.8565 GB, free: 21.86 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.4495, allocations: 94.59 kB / 0.8566 GB, free: 21.84 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002273/0.4498, allocations: 200.4 kB / 0.8568 GB, free: 21.8 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4498, allocations: 0 / 0.8568 GB, free: 21.8 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4498, allocations: 0 / 0.8568 GB, free: 21.8 MB / 490.8 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.4498, allocations: 0 / 0.8568 GB, free: 21.8 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008379/0.4506, allocations: 499.5 kB / 0.8573 GB, free: 21.41 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.4506, allocations: 9.625 kB / 0.8573 GB, free: 21.41 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/0.4507, allocations: 23.8 kB / 0.8573 GB, free: 21.39 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.4509, allocations: 186.3 kB / 0.8575 GB, free: 21.24 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.451, allocations: 8.984 kB / 0.8575 GB, free: 21.24 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.451, allocations: 25.42 kB / 0.8575 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.4514, allocations: 187.9 kB / 0.8577 GB, free: 21.15 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.4514, allocations: 4.531 kB / 0.8577 GB, free: 21.15 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.4514, allocations: 4.062 kB / 0.8577 GB, free: 21.15 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.4514, allocations: 5.438 kB / 0.8577 GB, free: 21.15 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003404/0.4518, allocations: 145.5 kB / 0.8579 GB, free: 21.12 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006913/0.4525, allocations: 483.4 kB / 0.8583 GB, free: 20.82 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000458/0.4529, allocations: 173.4 kB / 0.8585 GB, free: 20.77 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.4531, allocations: 94.81 kB / 0.8586 GB, free: 20.73 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.4531, allocations: 0.5625 kB / 0.8586 GB, free: 20.73 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000312/0.4534, allocations: 236 kB / 0.8588 GB, free: 20.58 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.4534, allocations: 0 / 0.8588 GB, free: 20.58 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001316/0.4547, allocations: 0.7012 MB / 0.8595 GB, free: 20.22 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.4548, allocations: 140.6 kB / 0.8596 GB, free: 20.06 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.4549, allocations: 218.7 kB / 0.8598 GB, free: 19.96 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.455, allocations: 30.73 kB / 0.8599 GB, free: 19.93 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.627e-05/0.455, allocations: 132.7 kB / 0.86 GB, free: 19.83 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.362e-05/0.4551, allocations: 71.47 kB / 0.8601 GB, free: 19.79 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.417e-05/0.4552, allocations: 53.72 kB / 0.8601 GB, free: 19.77 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 5.741e-05/0.4552, allocations: 341.2 kB / 0.8604 GB, free: 19.45 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.4554, allocations: 143.6 kB / 0.8606 GB, free: 19.38 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.4556, allocations: 227.6 kB / 0.8608 GB, free: 19.21 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.456, allocations: 274.2 kB / 0.861 GB, free: 19.05 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.456, allocations: 4.812 kB / 0.861 GB, free: 19.05 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005408/0.4566, allocations: 390.6 kB / 0.8614 GB, free: 18.87 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/0.4566, allocations: 62.27 kB / 0.8615 GB, free: 18.8 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.4566, allocations: 6.281 kB / 0.8615 GB, free: 18.8 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.4566, allocations: 3.969 kB / 0.8615 GB, free: 18.8 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.4568, allocations: 50.05 kB / 0.8615 GB, free: 18.8 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.4568, allocations: 6.5 kB / 0.8615 GB, free: 18.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.457, allocations: 21.78 kB / 0.8616 GB, free: 18.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.457, allocations: 11.88 kB / 0.8616 GB, free: 18.8 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: 8 * Number of states: 0 () * Number of discrete variables: 13 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.central.rising,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 2 * 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.0001572/0.4572, allocations: 175.4 kB / 0.8617 GB, free: 18.64 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.4572, allocations: 24.33 kB / 0.8618 GB, free: 18.63 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.267e-05/0.4573, allocations: 27.05 kB / 0.8618 GB, free: 18.62 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.4573, allocations: 3.5 kB / 0.8618 GB, free: 18.62 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4573, allocations: 2.562 kB / 0.8618 GB, free: 18.62 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.4573, allocations: 5.016 kB / 0.8618 GB, free: 18.61 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006509/0.4579, allocations: 0.5403 MB / 0.8623 GB, free: 18.32 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4579, allocations: 0 / 0.8623 GB, free: 18.32 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.4581, allocations: 36.31 kB / 0.8624 GB, free: 18.31 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.4581, allocations: 0.5625 kB / 0.8624 GB, free: 18.31 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.4581, allocations: 8.609 kB / 0.8624 GB, free: 18.31 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.4581, allocations: 12.5 kB / 0.8624 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4581, allocations: 0 / 0.8624 GB, free: 18.3 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006366/0.4588, allocations: 0.4892 MB / 0.8629 GB, free: 18.06 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.245e-05/0.4588, allocations: 19.98 kB / 0.8629 GB, free: 18.05 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.4589, allocations: 10.16 kB / 0.8629 GB, free: 18.05 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.459, allocations: 13.7 kB / 0.8629 GB, free: 18.05 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.455e-05/0.4591, allocations: 23.94 kB / 0.8629 GB, free: 18.05 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.4591, allocations: 11.16 kB / 0.8629 GB, free: 18.05 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001198/0.4592, allocations: 153.4 kB / 0.8631 GB, free: 17.97 MB / 490.8 MB Notification: Performance of sort global known variables: time 8e-08/0.4592, allocations: 5.219 kB / 0.8631 GB, free: 17.96 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002898/0.4595, allocations: 55.5 kB / 0.8631 GB, free: 17.96 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass) * Number of discrete variables: 8 ($whenCondition1,$whenCondition2,$whenCondition3,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 6 (periodicDose.pulse.count,central.Cmin,$whenCondition3,central.Cmax,$whenCondition2,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.000115/0.4596, allocations: 116.2 kB / 0.8633 GB, free: 17.88 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005121/0.4601, allocations: 382.8 kB / 0.8636 GB, free: 17.64 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4601, allocations: 0 / 0.8636 GB, free: 17.64 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002184/0.4604, allocations: 174.8 kB / 0.8638 GB, free: 17.55 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.4608, allocations: 67 kB / 0.8638 GB, free: 17.54 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.462, allocations: 0.682 MB / 0.8645 GB, free: 17.23 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.4621, allocations: 127.1 kB / 0.8646 GB, free: 17.15 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.4622, allocations: 24.03 kB / 0.8647 GB, free: 17.15 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.323e-05/0.4622, allocations: 20.23 kB / 0.8647 GB, free: 17.14 MB / 490.8 MB Notification: Performance of SimCode: time 5.51e-07/0.4623, allocations: 0 / 0.8647 GB, free: 17.14 MB / 490.8 MB Notification: Performance of Templates: time 0.007857/0.4701, allocations: 3.651 MB / 0.8682 GB, free: 16.81 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone_Gittel2021v2_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.537798769073561]