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.0007639/0.0007639, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001226/0.00199, allocations: 435.8 kB / 10.33 MB, free: 368 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.0009074/0.0009074, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001116/0.002023, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.045/1.045, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1212/1.166, allocations: 53.66 MB / 243.2 MB, free: 15.59 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.7961/0.7961, allocations: 291.2 MB / 0.5226 GB, free: 52.46 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03453/0.8306, allocations: 21.04 MB / 0.5432 GB, free: 31.49 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,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: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 0.5446 GB, free: 30.05 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.525e-05, allocations: 10.19 kB / 0.5446 GB, free: 30.04 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA03_Hydromorphone.Hydromorphone): time 0.003224/0.003249, allocations: 2.962 MB / 0.5475 GB, free: 27.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00475/0.007999, allocations: 6.767 MB / 0.5541 GB, free: 20.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.008133, allocations: 4 kB / 0.5541 GB, free: 20.29 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.396e-05/0.008217, allocations: 47.56 kB / 0.5541 GB, free: 20.24 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.008405, allocations: 123 kB / 0.5542 GB, free: 20.12 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.008585, allocations: 71.78 kB / 0.5543 GB, free: 20.05 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002573/0.008842, allocations: 393.9 kB / 0.5547 GB, free: 19.66 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.008961, allocations: 62.86 kB / 0.5547 GB, free: 19.6 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.009172, allocations: 246.6 kB / 0.555 GB, free: 19.36 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.009363, allocations: 135.6 kB / 0.5551 GB, free: 19.23 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.009393, allocations: 24 kB / 0.5551 GB, free: 19.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.12e-05/0.009425, allocations: 24 kB / 0.5552 GB, free: 19.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.21e-05/0.009457, allocations: 39.81 kB / 0.5552 GB, free: 19.14 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.215e-05/0.009529, allocations: 95.81 kB / 0.5553 GB, free: 19.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.009754, allocations: 199.2 kB / 0.5555 GB, free: 18.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.49e-05/0.009769, allocations: 4 kB / 0.5555 GB, free: 18.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.009771, allocations: 0 / 0.5555 GB, free: 18.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.009784, allocations: 0 / 0.5555 GB, free: 18.85 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.000623/0.01041, allocations: 0.6282 MB / 0.5561 GB, free: 18.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.01044, allocations: 8.031 kB / 0.5561 GB, free: 18.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.339e-05/0.01051, allocations: 44.89 kB / 0.5561 GB, free: 18.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/0.01072, allocations: 189.5 kB / 0.5563 GB, free: 17.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.01074, allocations: 16.75 kB / 0.5563 GB, free: 17.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.01077, allocations: 24.33 kB / 0.5564 GB, free: 17.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.01097, allocations: 244 kB / 0.5566 GB, free: 17.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.01099, allocations: 7.984 kB / 0.5566 GB, free: 17.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.011, allocations: 8 kB / 0.5566 GB, free: 17.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.01101, allocations: 4 kB / 0.5566 GB, free: 17.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.01111, allocations: 133.8 kB / 0.5567 GB, free: 17.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005882/0.0117, allocations: 0.5116 MB / 0.5572 GB, free: 16.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.0119, allocations: 168.7 kB / 0.5574 GB, free: 16.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.401e-05/0.01195, allocations: 100.5 kB / 0.5575 GB, free: 16.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.01197, allocations: 7.938 kB / 0.5575 GB, free: 16.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001635/0.01213, allocations: 315.4 kB / 0.5578 GB, free: 16.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 1.653e-06/0.01213, allocations: 0 / 0.5578 GB, free: 16.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007384/0.01287, allocations: 0.8053 MB / 0.5586 GB, free: 15.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.01292, allocations: 217.6 kB / 0.5588 GB, free: 15.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.01302, allocations: 229 kB / 0.559 GB, free: 14.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.01304, allocations: 37.7 kB / 0.5591 GB, free: 14.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.451e-05/0.01308, allocations: 133.3 kB / 0.5592 GB, free: 14.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2723/0.2854, allocations: 114.3 kB / 0.5593 GB, free: 79.86 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.2855, allocations: 72.02 kB / 0.5594 GB, free: 79.85 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 5.98e-05/0.2855, allocations: 346.9 kB / 0.5597 GB, free: 79.54 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.2857, allocations: 145.4 kB / 0.5598 GB, free: 79.43 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.2858, allocations: 257.5 kB / 0.5601 GB, free: 79.21 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.2859, allocations: 338.8 kB / 0.5604 GB, free: 78.95 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2859, allocations: 0 / 0.5604 GB, free: 78.95 MB / 410.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0002895/0.2862, allocations: 390 kB / 0.5608 GB, free: 78.73 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.2863, allocations: 93.03 kB / 0.5609 GB, free: 78.64 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.2863, allocations: 3.281 kB / 0.5609 GB, free: 78.64 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.2863, allocations: 4.312 kB / 0.5609 GB, free: 78.64 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.2866, allocations: 108.8 kB / 0.561 GB, free: 78.64 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2866, allocations: 9.75 kB / 0.561 GB, free: 78.64 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.2867, allocations: 16.95 kB / 0.561 GB, free: 78.64 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.2868, allocations: 14.42 kB / 0.561 GB, free: 78.64 MB / 410.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.0001391/0.2869, allocations: 208.1 kB / 0.5612 GB, free: 78.46 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.066e-05/0.2869, allocations: 34.59 kB / 0.5612 GB, free: 78.46 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.043e-05/0.287, allocations: 36.95 kB / 0.5613 GB, free: 78.45 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.287, allocations: 3.25 kB / 0.5613 GB, free: 78.45 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.287, allocations: 0.5625 kB / 0.5613 GB, free: 78.45 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.287, allocations: 2.266 kB / 0.5613 GB, free: 78.45 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.2874, allocations: 0.5195 MB / 0.5618 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2874, allocations: 0 / 0.5618 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.2876, allocations: 77.34 kB / 0.5619 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.2877, allocations: 23.17 kB / 0.5619 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2877, allocations: 3.219 kB / 0.5619 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2877, allocations: 9.422 kB / 0.5619 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2877, allocations: 2.188 kB / 0.5619 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2877, allocations: 3.453 kB / 0.5619 GB, free: 78.14 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.288, allocations: 0.531 MB / 0.5624 GB, free: 77.81 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.288, allocations: 12.3 kB / 0.5624 GB, free: 77.81 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.274e-05/0.2881, allocations: 16.06 kB / 0.5624 GB, free: 77.81 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.2882, allocations: 26.45 kB / 0.5625 GB, free: 77.81 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.2882, allocations: 9.828 kB / 0.5625 GB, free: 77.81 MB / 410.8 MB Notification: Performance of sorting global known variables: time 6.372e-05/0.2883, allocations: 82.86 kB / 0.5626 GB, free: 77.8 MB / 410.8 MB Notification: Performance of sort global known variables: time 5e-08/0.2883, allocations: 0 / 0.5626 GB, free: 77.8 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0002063/0.2885, allocations: 83.94 kB / 0.5626 GB, free: 77.8 MB / 410.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.631e-05/0.2886, allocations: 102.9 kB / 0.5627 GB, free: 77.73 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0002664/0.2888, allocations: 488.5 kB / 0.5632 GB, free: 77.37 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.2889, allocations: 3.938 kB / 0.5632 GB, free: 77.37 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.289, allocations: 261.1 kB / 0.5635 GB, free: 77.17 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.2893, allocations: 126.7 kB / 0.5636 GB, free: 77.17 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007802/0.2971, allocations: 0.7449 MB / 0.5643 GB, free: 76.81 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.037e-05/0.2972, allocations: 95.66 kB / 0.5644 GB, free: 76.73 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 9.515e-05/0.2973, allocations: 35.45 kB / 0.5644 GB, free: 76.73 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.2974, allocations: 149.8 kB / 0.5646 GB, free: 76.69 MB / 410.8 MB Notification: Performance of SimCode: time 7.01e-07/0.2974, allocations: 0.6875 kB / 0.5646 GB, free: 76.69 MB / 410.8 MB Notification: Performance of Templates: time 0.007028/0.3045, allocations: 5.261 MB / 0.5697 GB, free: 75.59 MB / 410.8 MB " [Timeout remaining time 660] 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: 3.911803192459047]