Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.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.001486/0.001486, allocations: 89.08 kB / 19.42 MB, free: 496 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.001849/0.001849, allocations: 169 kB / 22.72 MB, free: 1.828 MB / 18.57 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 0.9845/0.9845, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/Examples/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: Paracetamol_Experiment Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/package.mo): time 1.664/1.664, allocations: 273.5 MB / 0.5205 GB, free: 14.8 MB / 458.7 MB " [Timeout remaining time 178] Using package Pharmacolibrary with version 25.09 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.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.Pharmacokinetic.Models.PK_2C,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C") translateModel(Pharmacolibrary.Pharmacokinetic.Models.PK_2C,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.6463 GB, free: 38.49 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.709e-05/2.862e-05, allocations: 2.312 kB / 0.6463 GB, free: 38.48 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Pharmacokinetic.Models.PK_2C): time 0.003875/0.003903, allocations: 2.71 MB / 0.6489 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001382/0.005285, allocations: 0.685 MB / 0.6496 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.005442, allocations: 1.688 kB / 0.6496 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.005609, allocations: 36.95 kB / 0.6496 GB, free: 36.25 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002986/0.005908, allocations: 112 kB / 0.6497 GB, free: 36.21 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.006201, allocations: 80.05 kB / 0.6498 GB, free: 36.16 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0004114/0.006612, allocations: 367.8 kB / 0.6501 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.006797, allocations: 54.8 kB / 0.6502 GB, free: 35.95 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.007051, allocations: 188.8 kB / 0.6504 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002742/0.007325, allocations: 113.8 kB / 0.6505 GB, free: 35.85 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.007378, allocations: 25.44 kB / 0.6505 GB, free: 35.85 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.38e-05/0.007432, allocations: 26.78 kB / 0.6505 GB, free: 35.84 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 4.51e-05/0.007477, allocations: 55.06 kB / 0.6506 GB, free: 35.81 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.007602, allocations: 109.4 kB / 0.6507 GB, free: 35.77 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.007908, allocations: 211 kB / 0.6509 GB, free: 35.67 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.007913, allocations: 0 / 0.6509 GB, free: 35.67 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.573e-06/0.007915, allocations: 0 / 0.6509 GB, free: 35.67 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.007926, allocations: 1.594 kB / 0.6509 GB, free: 35.67 MB / 0.5262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008988/0.008825, allocations: 0.6746 MB / 0.6516 GB, free: 35.07 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.008869, allocations: 12.28 kB / 0.6516 GB, free: 35.07 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.008971, allocations: 50.8 kB / 0.6516 GB, free: 35.05 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.009226, allocations: 199.5 kB / 0.6518 GB, free: 34.88 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.954e-05/0.009266, allocations: 18.75 kB / 0.6518 GB, free: 34.86 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.8e-05/0.009324, allocations: 26.05 kB / 0.6518 GB, free: 34.86 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.009728, allocations: 269.2 kB / 0.6521 GB, free: 34.68 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.009748, allocations: 2.219 kB / 0.6521 GB, free: 34.68 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.009771, allocations: 9.969 kB / 0.6521 GB, free: 34.67 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.009783, allocations: 6.844 kB / 0.6521 GB, free: 34.67 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.01002, allocations: 155.4 kB / 0.6523 GB, free: 34.59 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.01108, allocations: 0.7479 MB / 0.653 GB, free: 34.02 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.01135, allocations: 179.8 kB / 0.6532 GB, free: 33.9 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.01147, allocations: 111.9 kB / 0.6533 GB, free: 33.82 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.01149, allocations: 5.125 kB / 0.6533 GB, free: 33.82 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.01178, allocations: 323.5 kB / 0.6536 GB, free: 33.55 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=33): time 2.715e-06/0.01179, allocations: 0 / 0.6536 GB, free: 33.55 MB / 0.5262 GB Notification: Performance of matching and sorting (n=35): time 0.00132/0.01311, allocations: 0.9373 MB / 0.6545 GB, free: 32.9 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.01317, allocations: 224.7 kB / 0.6547 GB, free: 32.64 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.0134, allocations: 277 kB / 0.655 GB, free: 32.45 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.01343, allocations: 38.58 kB / 0.655 GB, free: 32.41 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 9.137e-05/0.01352, allocations: 206.1 kB / 0.6552 GB, free: 32.22 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/0.0136, allocations: 111.1 kB / 0.6553 GB, free: 32.14 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.0137, allocations: 77.84 kB / 0.6554 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 7.334e-05/0.01377, allocations: 0.5132 MB / 0.6559 GB, free: 31.58 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.01393, allocations: 154.6 kB / 0.656 GB, free: 31.46 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.01414, allocations: 306 kB / 0.6563 GB, free: 31.15 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004768/0.01462, allocations: 0.5281 MB / 0.6569 GB, free: 30.66 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.01463, allocations: 1.125 kB / 0.6569 GB, free: 30.66 MB / 0.5262 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0007084/0.01533, allocations: 495.9 kB / 0.6573 GB, free: 30.35 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 5.196e-05/0.01539, allocations: 95.81 kB / 0.6574 GB, free: 30.25 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.0154, allocations: 2.75 kB / 0.6574 GB, free: 30.25 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.548e-05/0.01543, allocations: 6.219 kB / 0.6574 GB, free: 30.25 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003543/0.01579, allocations: 84.84 kB / 0.6575 GB, free: 30.24 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.0158, allocations: 13.19 kB / 0.6575 GB, free: 30.24 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.01599, allocations: 18.69 kB / 0.6575 GB, free: 30.23 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.01603, allocations: 20.25 kB / 0.6576 GB, free: 30.23 MB / 0.5262 GB Warning: Assuming fixed start value for the following 10 variables: central.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real peripheral.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real peripheral.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real peripheral.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real central.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real central.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real peripheral.rising:DISCRETE(fixed = true protected = true ) type: Boolean central.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.peripheral.Cmin,peripheral.Cmin,$PRE.peripheral.Cmax,peripheral.Cmax,$PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.peripheral.rising,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,$PRE.central.rising,peripheral.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,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 (51): * Single equations (assignments): 48 * 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.0002461/0.01628, allocations: 299.7 kB / 0.6578 GB, free: 29.96 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/0.01634, allocations: 40.67 kB / 0.6579 GB, free: 29.95 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.97e-05/0.0164, allocations: 32.89 kB / 0.6579 GB, free: 29.92 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.0164, allocations: 4.719 kB / 0.6579 GB, free: 29.92 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.01641, allocations: 0 / 0.6579 GB, free: 29.92 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.01641, allocations: 3.703 kB / 0.6579 GB, free: 29.92 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007844/0.0172, allocations: 0.7518 MB / 0.6587 GB, free: 29.38 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.0172, allocations: 3.062 kB / 0.6587 GB, free: 29.38 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/0.01745, allocations: 59.44 kB / 0.6587 GB, free: 29.38 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.01746, allocations: 1.438 kB / 0.6587 GB, free: 29.38 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.01748, allocations: 8.156 kB / 0.6587 GB, free: 29.37 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.01749, allocations: 1.406 kB / 0.6587 GB, free: 29.37 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.01749, allocations: 0 / 0.6587 GB, free: 29.37 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006167/0.0181, allocations: 0.6776 MB / 0.6594 GB, free: 28.9 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-05/0.01814, allocations: 22.39 kB / 0.6594 GB, free: 28.89 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.029e-05/0.0182, allocations: 13.39 kB / 0.6594 GB, free: 28.89 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.01835, allocations: 12.5 kB / 0.6594 GB, free: 28.88 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.539e-05/0.01844, allocations: 41.88 kB / 0.6595 GB, free: 28.87 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.01846, allocations: 12 kB / 0.6595 GB, free: 28.87 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0001235/0.01858, allocations: 196.7 kB / 0.6597 GB, free: 28.73 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2e-07/0.01858, allocations: 0 / 0.6597 GB, free: 28.73 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0004134/0.019, allocations: 82.88 kB / 0.6598 GB, free: 28.72 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.variableDose.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 (29): * Single equations (assignments): 25 * 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 0.0001179/0.01912, allocations: 121.9 kB / 0.6599 GB, free: 28.63 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0004827/0.0196, allocations: 0.5017 MB / 0.6604 GB, free: 28.23 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.0196, allocations: 0 / 0.6604 GB, free: 28.23 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002048/0.0198, allocations: 283.9 kB / 0.6606 GB, free: 28.01 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005535/0.02036, allocations: 82.83 kB / 0.6607 GB, free: 27.99 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.02273, allocations: 0.8773 MB / 0.6616 GB, free: 27.42 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.645e-05/0.0228, allocations: 93.22 kB / 0.6617 GB, free: 27.35 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001419/0.02294, allocations: 26.83 kB / 0.6617 GB, free: 27.35 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.422e-05/0.02302, allocations: 37.89 kB / 0.6617 GB, free: 27.33 MB / 0.5262 GB Notification: Performance of SimCode: time 1.583e-06/0.02302, allocations: 0 / 0.6617 GB, free: 27.33 MB / 0.5262 GB Notification: Performance of Templates: time 0.007007/0.03002, allocations: 4.338 MB / 0.666 GB, free: 26.96 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.sim & ./Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.062736891210079]