Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.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.001058/0.001058, allocations: 108.3 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.002141/0.002141, allocations: 220.4 kB / 23.01 MB, free: 2.969 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.036/1.036, 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.7456/0.7456, allocations: 312.3 MB / 0.6108 GB, free: 97.2 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.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") [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.001511/0.001511, allocations: 71.41 kB / 0.7699 GB, free: 19.82 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1081, allocations: 73.99 MB / 0.8421 GB, free: 9.965 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone): time 0.002664/0.1107, allocations: 2.298 MB / 0.8444 GB, free: 7.668 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.005227/0.116, allocations: 6.533 MB / 0.8508 GB, free: 1.133 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.1161, allocations: 0 / 0.8508 GB, free: 1.133 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.1162, allocations: 24.41 kB / 0.8508 GB, free: 1.109 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.1164, allocations: 88.03 kB / 0.8509 GB, free: 1.023 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002108/0.1166, allocations: 44.58 kB / 0.8509 GB, free: 0.9805 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.1169, allocations: 255.3 kB / 0.8512 GB, free: 0.7305 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.117, allocations: 45.09 kB / 0.8512 GB, free: 0.6875 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.1171, allocations: 103.6 kB / 0.8513 GB, free: 0.5859 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.1173, allocations: 88.05 kB / 0.8514 GB, free: 0.5 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.1173, allocations: 20.62 kB / 0.8514 GB, free: 492 kB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.484e-05/0.1173, allocations: 19.94 kB / 0.8514 GB, free: 472 kB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.1174, allocations: 36.48 kB / 0.8515 GB, free: 436 kB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 7.249e-05/0.1174, allocations: 92.17 kB / 0.8515 GB, free: 344 kB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001938/0.1176, allocations: 199.2 kB / 0.8517 GB, free: 144 kB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1176, allocations: 0.5938 kB / 0.8517 GB, free: 144 kB / 474.8 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1176, allocations: 0.5938 kB / 0.8517 GB, free: 144 kB / 474.8 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1176, allocations: 3.938 kB / 0.8517 GB, free: 140 kB / 474.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.0006738/0.1183, allocations: 0.4909 MB / 0.8522 GB, free: 15.6 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.1183, allocations: 8.781 kB / 0.8522 GB, free: 15.59 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.631e-05/0.1184, allocations: 24.8 kB / 0.8522 GB, free: 15.57 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001993/0.1186, allocations: 183.7 kB / 0.8524 GB, free: 15.36 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.1186, allocations: 12.61 kB / 0.8524 GB, free: 15.35 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.093e-05/0.1186, allocations: 20.58 kB / 0.8525 GB, free: 15.33 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.1189, allocations: 191 kB / 0.8526 GB, free: 15.12 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1189, allocations: 4.656 kB / 0.8526 GB, free: 15.12 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.1189, allocations: 4 kB / 0.8526 GB, free: 15.12 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1189, allocations: 4.719 kB / 0.8526 GB, free: 15.11 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.1191, allocations: 142.9 kB / 0.8528 GB, free: 14.97 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005996/0.1197, allocations: 482.7 kB / 0.8532 GB, free: 14.46 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.1201, allocations: 173.4 kB / 0.8534 GB, free: 14.28 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.1202, allocations: 103 kB / 0.8535 GB, free: 14.17 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.1202, allocations: 8.547 kB / 0.8535 GB, free: 14.16 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.1204, allocations: 228.8 kB / 0.8537 GB, free: 13.91 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.1204, allocations: 0.5938 kB / 0.8537 GB, free: 13.91 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.0009141/0.1213, allocations: 0.6969 MB / 0.8544 GB, free: 13.16 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.1214, allocations: 141 kB / 0.8545 GB, free: 12.99 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.1215, allocations: 220.7 kB / 0.8548 GB, free: 12.77 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.1215, allocations: 33.7 kB / 0.8548 GB, free: 12.73 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.38e-05/0.1216, allocations: 129.2 kB / 0.8549 GB, free: 12.6 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.1216, allocations: 71.42 kB / 0.855 GB, free: 12.53 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/0.1217, allocations: 58.19 kB / 0.855 GB, free: 12.46 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.2485/0.3702, allocations: 336.2 kB / 0.8554 GB, free: 30.36 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.3704, allocations: 145.4 kB / 0.8555 GB, free: 30.28 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.3706, allocations: 224.9 kB / 0.8557 GB, free: 30.12 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.3708, allocations: 275.9 kB / 0.856 GB, free: 29.96 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3708, allocations: 2.438 kB / 0.856 GB, free: 29.96 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003801/0.3712, allocations: 397.2 kB / 0.8564 GB, free: 29.8 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/0.3712, allocations: 63.94 kB / 0.8564 GB, free: 29.74 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3712, allocations: 2.906 kB / 0.8564 GB, free: 29.74 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3713, allocations: 5.719 kB / 0.8564 GB, free: 29.74 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.3714, allocations: 48.47 kB / 0.8565 GB, free: 29.74 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.3714, allocations: 0.75 kB / 0.8565 GB, free: 29.74 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.3715, allocations: 20.97 kB / 0.8565 GB, free: 29.74 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.3715, allocations: 11.03 kB / 0.8565 GB, free: 29.74 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.0001555/0.3717, allocations: 183.1 kB / 0.8567 GB, free: 29.59 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.3717, allocations: 20.17 kB / 0.8567 GB, free: 29.59 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/0.3717, allocations: 31.31 kB / 0.8567 GB, free: 29.57 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3717, allocations: 0.8438 kB / 0.8567 GB, free: 29.57 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3718, allocations: 0 / 0.8567 GB, free: 29.57 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3718, allocations: 2.438 kB / 0.8567 GB, free: 29.57 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00048/0.3722, allocations: 0.5345 MB / 0.8573 GB, free: 29.28 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3722, allocations: 7.219 kB / 0.8573 GB, free: 29.28 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.3723, allocations: 36.11 kB / 0.8573 GB, free: 29.27 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3723, allocations: 1.312 kB / 0.8573 GB, free: 29.27 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3724, allocations: 8.641 kB / 0.8573 GB, free: 29.27 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3724, allocations: 0 / 0.8573 GB, free: 29.27 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3724, allocations: 0 / 0.8573 GB, free: 29.27 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.3728, allocations: 0.4913 MB / 0.8578 GB, free: 29.05 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.728e-05/0.3728, allocations: 20.72 kB / 0.8578 GB, free: 29.05 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.3728, allocations: 12.66 kB / 0.8578 GB, free: 29.05 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.3729, allocations: 12.7 kB / 0.8578 GB, free: 29.05 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.322e-05/0.373, allocations: 27.12 kB / 0.8579 GB, free: 29.04 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.373, allocations: 11.88 kB / 0.8579 GB, free: 29.04 MB / 490.8 MB Notification: Performance of sorting global known variables: time 8.217e-05/0.3731, allocations: 156.8 kB / 0.858 GB, free: 28.96 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.3731, allocations: 2.406 kB / 0.858 GB, free: 28.96 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001865/0.3732, allocations: 54.91 kB / 0.8581 GB, free: 28.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 8.309e-05/0.3733, allocations: 114.2 kB / 0.8582 GB, free: 28.88 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003016/0.3736, allocations: 378.8 kB / 0.8585 GB, free: 28.65 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3736, allocations: 0 / 0.8585 GB, free: 28.65 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.3738, allocations: 174 kB / 0.8587 GB, free: 28.55 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.374, allocations: 68.67 kB / 0.8588 GB, free: 28.55 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000818/0.3749, allocations: 0.7029 MB / 0.8595 GB, free: 28.24 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.946e-05/0.3749, allocations: 125.6 kB / 0.8596 GB, free: 28.16 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.433e-05/0.375, allocations: 26.09 kB / 0.8596 GB, free: 28.16 MB / 490.8 MB Notification: Performance of SimCode: time 5.01e-07/0.375, allocations: 4 kB / 0.8596 GB, free: 28.16 MB / 490.8 MB Notification: Performance of Templates: time 0.003688/0.3787, allocations: 2.945 MB / 0.8625 GB, free: 27.95 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.062996403314173]