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.002438/0.002438, allocations: 81.5 kB / 19.44 MB, free: 344 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.002957/0.002957, allocations: 173.6 kB / 22.76 MB, free: 1.664 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 1.595/1.595, allocations: 177.1 MB / 203.1 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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 3.413/3.413, allocations: 274.5 MB / 0.5215 GB, free: 14.17 MB / 458.7 MB " [Timeout remaining time 176] 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.503e-06/1.503e-06, allocations: 0 / 0.6472 GB, free: 39.18 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.353e-05/2.504e-05, allocations: 4.906 kB / 0.6472 GB, free: 39.17 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Pharmacokinetic.Models.PK_2C): time 0.003333/0.003358, allocations: 2.685 MB / 0.6499 GB, free: 37.4 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0009689/0.004327, allocations: 0.6837 MB / 0.6505 GB, free: 36.95 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.004433, allocations: 5.75 kB / 0.6505 GB, free: 36.95 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.004582, allocations: 35.77 kB / 0.6506 GB, free: 36.93 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.004817, allocations: 112 kB / 0.6507 GB, free: 36.89 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.005046, allocations: 72.59 kB / 0.6507 GB, free: 36.84 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003202/0.005367, allocations: 366.9 kB / 0.6511 GB, free: 36.66 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.005541, allocations: 56.83 kB / 0.6511 GB, free: 36.63 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.005773, allocations: 191.1 kB / 0.6513 GB, free: 36.55 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.00604, allocations: 115.1 kB / 0.6514 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.006092, allocations: 23.94 kB / 0.6515 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.792e-05/0.00615, allocations: 26 kB / 0.6515 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 5.162e-05/0.006202, allocations: 53.03 kB / 0.6515 GB, free: 36.48 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.006335, allocations: 114.3 kB / 0.6516 GB, free: 36.44 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.006621, allocations: 275.9 kB / 0.6519 GB, free: 36.33 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.006623, allocations: 0 / 0.6519 GB, free: 36.33 MB / 0.5262 GB Notification: Performance of FrontEnd: time 7.21e-07/0.006624, allocations: 3.375 kB / 0.6519 GB, free: 36.33 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.006629, allocations: 0 / 0.6519 GB, free: 36.33 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.0008381/0.007467, allocations: 0.6893 MB / 0.6526 GB, free: 35.73 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.007498, allocations: 10.12 kB / 0.6526 GB, free: 35.73 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.038e-05/0.007589, allocations: 50.03 kB / 0.6526 GB, free: 35.7 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.007803, allocations: 203.7 kB / 0.6528 GB, free: 35.52 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.007824, allocations: 20.44 kB / 0.6529 GB, free: 35.51 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.462e-05/0.007868, allocations: 27.64 kB / 0.6529 GB, free: 35.5 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003774/0.008246, allocations: 295.4 kB / 0.6532 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.008265, allocations: 3.219 kB / 0.6532 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.008287, allocations: 8.875 kB / 0.6532 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.008295, allocations: 5.812 kB / 0.6532 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003663/0.008661, allocations: 221.2 kB / 0.6534 GB, free: 35.21 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.009726, allocations: 0.8074 MB / 0.6542 GB, free: 34.6 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003615/0.01009, allocations: 239.3 kB / 0.6544 GB, free: 34.46 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.01028, allocations: 146.9 kB / 0.6546 GB, free: 34.36 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.0103, allocations: 4.469 kB / 0.6546 GB, free: 34.36 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003893/0.01069, allocations: 364.2 kB / 0.6549 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/0.01069, allocations: 1.5 kB / 0.6549 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of matching and sorting (n=35): time 0.001856/0.01255, allocations: 1.084 MB / 0.656 GB, free: 33.36 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.0126, allocations: 220.3 kB / 0.6562 GB, free: 33.11 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.0128, allocations: 312.6 kB / 0.6565 GB, free: 32.89 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.01282, allocations: 37.08 kB / 0.6565 GB, free: 32.86 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 7.421e-05/0.0129, allocations: 208.9 kB / 0.6567 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 6.681e-05/0.01296, allocations: 120.1 kB / 0.6568 GB, free: 32.58 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-05/0.01306, allocations: 90.61 kB / 0.6569 GB, free: 32.53 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 8.352e-05/0.01315, allocations: 0.5265 MB / 0.6574 GB, free: 32.01 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.01339, allocations: 206.3 kB / 0.6576 GB, free: 31.87 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.01365, allocations: 356.2 kB / 0.658 GB, free: 31.54 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000605/0.01426, allocations: 0.6455 MB / 0.6586 GB, free: 31 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01426, allocations: 4.844 kB / 0.6586 GB, free: 31 MB / 0.5262 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000671/0.01493, allocations: 0.5744 MB / 0.6592 GB, free: 30.64 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.01497, allocations: 95.47 kB / 0.6592 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.01497, allocations: 8.156 kB / 0.6593 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.01499, allocations: 4.25 kB / 0.6593 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003235/0.01532, allocations: 88.39 kB / 0.6593 GB, free: 30.52 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.01533, allocations: 5.594 kB / 0.6593 GB, free: 30.52 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.01553, allocations: 22.89 kB / 0.6594 GB, free: 30.52 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.761e-05/0.01555, allocations: 18 kB / 0.6594 GB, free: 30.52 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.0002195/0.01577, allocations: 303.6 kB / 0.6597 GB, free: 30.25 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.01583, allocations: 45 kB / 0.6597 GB, free: 30.23 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.164e-05/0.01589, allocations: 32.25 kB / 0.6597 GB, free: 30.2 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-06/0.0159, allocations: 2.781 kB / 0.6598 GB, free: 30.2 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.0159, allocations: 2.406 kB / 0.6598 GB, free: 30.2 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.01591, allocations: 0 / 0.6598 GB, free: 30.2 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008953/0.0168, allocations: 0.8399 MB / 0.6606 GB, free: 29.63 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.0168, allocations: 0 / 0.6606 GB, free: 29.63 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.01706, allocations: 58.5 kB / 0.6606 GB, free: 29.62 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.01706, allocations: 2.156 kB / 0.6606 GB, free: 29.62 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.01709, allocations: 9.625 kB / 0.6606 GB, free: 29.62 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.01709, allocations: 2.812 kB / 0.6606 GB, free: 29.62 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.01709, allocations: 0 / 0.6606 GB, free: 29.62 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008353/0.01793, allocations: 0.7905 MB / 0.6614 GB, free: 29.1 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.673e-05/0.01796, allocations: 20.23 kB / 0.6614 GB, free: 29.09 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.366e-05/0.01802, allocations: 16.97 kB / 0.6615 GB, free: 29.08 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.0182, allocations: 12.41 kB / 0.6615 GB, free: 29.08 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.828e-05/0.01829, allocations: 32.17 kB / 0.6615 GB, free: 29.07 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.01831, allocations: 19.84 kB / 0.6615 GB, free: 29.06 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0001383/0.01845, allocations: 214.3 kB / 0.6617 GB, free: 28.92 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6e-08/0.01845, allocations: 0 / 0.6617 GB, free: 28.92 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0003482/0.0188, allocations: 82.19 kB / 0.6618 GB, free: 28.91 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.0001106/0.01891, allocations: 129.7 kB / 0.6619 GB, free: 28.81 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0006481/0.01956, allocations: 0.6034 MB / 0.6625 GB, free: 28.37 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01956, allocations: 0 / 0.6625 GB, free: 28.37 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002994/0.01986, allocations: 329.4 kB / 0.6628 GB, free: 28.12 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.02042, allocations: 84.77 kB / 0.6629 GB, free: 28.11 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.02164, allocations: 0.8482 MB / 0.6637 GB, free: 27.53 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.02174, allocations: 156.2 kB / 0.6639 GB, free: 27.45 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.02185, allocations: 33.69 kB / 0.6639 GB, free: 27.45 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.886e-05/0.02192, allocations: 26.84 kB / 0.6639 GB, free: 27.44 MB / 0.5262 GB Notification: Performance of SimCode: time 5.11e-07/0.02192, allocations: 0 / 0.6639 GB, free: 27.44 MB / 0.5262 GB Notification: Performance of Templates: time 0.008212/0.03013, allocations: 4.348 MB / 0.6682 GB, free: 27.05 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: 8.540379303973168]