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.001092/0.001092, allocations: 68.19 kB / 9.865 MB, free: 0.8203 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009959/0.002088, allocations: 443.8 kB / 10.3 MB, free: 396 kB / 10.45 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.0007501/0.0007501, allocations: 157.2 kB / 11.19 MB, free: 2.98 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009759/0.001726, allocations: 463.6 kB / 11.64 MB, free: 2.523 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.006/1.006, allocations: 177.2 MB / 189.5 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1099/1.116, allocations: 53.66 MB / 243.2 MB, free: 15.6 MB / 250.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.7941/0.7941, allocations: 291.1 MB / 0.5225 GB, free: 52.95 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03011/0.8243, allocations: 21.04 MB / 0.5431 GB, free: 31.97 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: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.5444 GB, free: 30.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.159e-05, allocations: 2.312 kB / 0.5444 GB, free: 30.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone): time 0.002226/0.002248, allocations: 2.497 MB / 0.5469 GB, free: 28.11 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004399/0.006646, allocations: 6.688 MB / 0.5534 GB, free: 21.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.006779, allocations: 0 / 0.5534 GB, free: 21.41 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.051e-05/0.006859, allocations: 27.72 kB / 0.5534 GB, free: 21.38 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.007047, allocations: 91.25 kB / 0.5535 GB, free: 21.29 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001508/0.007198, allocations: 47.88 kB / 0.5535 GB, free: 21.24 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.007397, allocations: 266.6 kB / 0.5538 GB, free: 20.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.007502, allocations: 50.47 kB / 0.5538 GB, free: 20.93 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.00769, allocations: 176.2 kB / 0.554 GB, free: 20.76 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.007838, allocations: 83.73 kB / 0.5541 GB, free: 20.68 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.007863, allocations: 16 kB / 0.5541 GB, free: 20.66 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.441e-05/0.007888, allocations: 16 kB / 0.5541 GB, free: 20.65 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.745e-05/0.007915, allocations: 35.8 kB / 0.5542 GB, free: 20.61 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.481e-05/0.00797, allocations: 59.94 kB / 0.5542 GB, free: 20.55 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.008123, allocations: 135.5 kB / 0.5543 GB, free: 20.42 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.451e-05/0.008137, allocations: 0 / 0.5543 GB, free: 20.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.008139, allocations: 0 / 0.5543 GB, free: 20.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.008148, allocations: 4 kB / 0.5543 GB, free: 20.42 MB / 410.7 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.000547/0.008695, allocations: 0.5014 MB / 0.5548 GB, free: 19.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.008724, allocations: 15.84 kB / 0.5549 GB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.008769, allocations: 24.92 kB / 0.5549 GB, free: 19.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.008914, allocations: 175.1 kB / 0.555 GB, free: 19.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.008933, allocations: 12.61 kB / 0.5551 GB, free: 19.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.008954, allocations: 12.38 kB / 0.5551 GB, free: 19.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.009109, allocations: 167.4 kB / 0.5552 GB, free: 19.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.009119, allocations: 0 / 0.5552 GB, free: 19.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.009129, allocations: 0 / 0.5552 GB, free: 19.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.009135, allocations: 4 kB / 0.5552 GB, free: 19.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.443e-05/0.009209, allocations: 76.7 kB / 0.5553 GB, free: 19.35 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003703/0.009579, allocations: 368.9 kB / 0.5557 GB, free: 18.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.009743, allocations: 116 kB / 0.5558 GB, free: 18.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.697e-05/0.00978, allocations: 65.67 kB / 0.5558 GB, free: 18.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.009789, allocations: 4 kB / 0.5558 GB, free: 18.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.009919, allocations: 188.4 kB / 0.556 GB, free: 18.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.00992, allocations: 0 / 0.556 GB, free: 18.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005136/0.01043, allocations: 0.5005 MB / 0.5565 GB, free: 17.99 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.01047, allocations: 140.5 kB / 0.5566 GB, free: 17.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.327e-05/0.01055, allocations: 198.1 kB / 0.5568 GB, free: 17.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.01056, allocations: 41.69 kB / 0.5569 GB, free: 17.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.158e-05/0.0106, allocations: 116.4 kB / 0.557 GB, free: 17.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/0.01063, allocations: 79.33 kB / 0.557 GB, free: 17.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.187e-05/0.01068, allocations: 51.19 kB / 0.5571 GB, free: 17.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.224e-05/0.01071, allocations: 342.7 kB / 0.5574 GB, free: 16.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.996e-05/0.01076, allocations: 96.98 kB / 0.5575 GB, free: 16.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.003e-05/0.01082, allocations: 169.4 kB / 0.5577 GB, free: 16.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.826e-05/0.01092, allocations: 211.7 kB / 0.5579 GB, free: 16.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.01092, allocations: 0 / 0.5579 GB, free: 16.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0001543/0.01108, allocations: 270 kB / 0.5581 GB, free: 16.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.01111, allocations: 59.41 kB / 0.5582 GB, free: 16.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.01111, allocations: 224 / 0.5582 GB, free: 16.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.01112, allocations: 8 kB / 0.5582 GB, free: 16.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.01131, allocations: 69.86 kB / 0.5583 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.01131, allocations: 0 / 0.5583 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.511e-05/0.0114, allocations: 23.92 kB / 0.5583 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.01141, allocations: 8 kB / 0.5583 GB, free: 15.93 MB / 410.7 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 9.786e-05/0.01151, allocations: 163.7 kB / 0.5585 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.002e-05/0.01153, allocations: 27.98 kB / 0.5585 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.01156, allocations: 21.95 kB / 0.5585 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.01156, allocations: 3.984 kB / 0.5585 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.01156, allocations: 4 kB / 0.5585 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01156, allocations: 0 / 0.5585 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/0.01181, allocations: 381.5 kB / 0.5589 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.01181, allocations: 10.69 kB / 0.5589 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.01193, allocations: 39.95 kB / 0.5589 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.962e-05/0.01195, allocations: 19.86 kB / 0.5589 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.01195, allocations: 0 / 0.5589 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.01196, allocations: 8 kB / 0.5589 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.01197, allocations: 4 kB / 0.559 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01197, allocations: 0 / 0.559 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.01214, allocations: 345 kB / 0.5593 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.01217, allocations: 8 kB / 0.5593 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.43e-05/0.01224, allocations: 15.98 kB / 0.5593 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.01229, allocations: 19.91 kB / 0.5593 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.0123, allocations: 11.92 kB / 0.5593 GB, free: 14.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.2236/0.2359, allocations: 60.11 kB / 0.5594 GB, free: 79.58 MB / 410.8 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2359, allocations: 2.25 kB / 0.5594 GB, free: 79.58 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0002808/0.2362, allocations: 54.09 kB / 0.5594 GB, free: 79.58 MB / 410.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.0001203/0.2363, allocations: 95.86 kB / 0.5595 GB, free: 79.52 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.000253/0.2366, allocations: 307 kB / 0.5598 GB, free: 79.29 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.2366, allocations: 2.25 kB / 0.5598 GB, free: 79.29 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 8.403e-05/0.2367, allocations: 143.4 kB / 0.56 GB, free: 79.19 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.237, allocations: 88.19 kB / 0.5601 GB, free: 79.19 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005908/0.2429, allocations: 0.5786 MB / 0.5606 GB, free: 78.89 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.243, allocations: 128.2 kB / 0.5607 GB, free: 78.82 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.2432, allocations: 123 kB / 0.5609 GB, free: 78.78 MB / 410.8 MB Notification: Performance of SimCode: time 1.664e-06/0.2432, allocations: 0 / 0.5609 GB, free: 78.78 MB / 410.8 MB Notification: Performance of Templates: time 0.00421/0.2474, allocations: 2.926 MB / 0.5637 GB, free: 78.74 MB / 410.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: 4.5155014898628]