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.002481/0.002481, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.002014/0.002014, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.658/1.658, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.437/3.437, allocations: 274 MB / 0.5207 GB, free: 14.85 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.452e-06/1.452e-06, allocations: 0 / 0.7563 GB, free: 9.832 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.392e-05, allocations: 6.281 kB / 0.7563 GB, free: 9.824 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Pharmacokinetic.Models.PK_2C): time 0.004066/0.00409, allocations: 2.524 MB / 0.7588 GB, free: 7.32 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.005322, allocations: 0.6671 MB / 0.7594 GB, free: 6.66 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.95e-05/0.005422, allocations: 0 / 0.7594 GB, free: 6.66 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.005554, allocations: 39.64 kB / 0.7595 GB, free: 6.621 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.005795, allocations: 114.4 kB / 0.7596 GB, free: 6.535 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.006047, allocations: 75.83 kB / 0.7596 GB, free: 6.461 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.006472, allocations: 366 kB / 0.76 GB, free: 6.102 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.006631, allocations: 52.89 kB / 0.76 GB, free: 6.051 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.006879, allocations: 187.6 kB / 0.7602 GB, free: 5.867 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002591/0.007138, allocations: 107.6 kB / 0.7603 GB, free: 5.762 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 4.643e-05/0.007184, allocations: 24 kB / 0.7603 GB, free: 5.738 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.788e-05/0.007242, allocations: 28 kB / 0.7604 GB, free: 5.711 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 6.683e-05/0.007309, allocations: 55.75 kB / 0.7604 GB, free: 5.656 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.007457, allocations: 103.8 kB / 0.7605 GB, free: 5.555 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.007831, allocations: 283.1 kB / 0.7608 GB, free: 5.277 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.007836, allocations: 4 kB / 0.7608 GB, free: 5.273 MB / 0.5887 GB Notification: Performance of FrontEnd: time 7.32e-07/0.007837, allocations: 0 / 0.7608 GB, free: 5.273 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.007841, allocations: 0 / 0.7608 GB, free: 5.273 MB / 0.5887 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.001092/0.008933, allocations: 0.581 MB / 0.7614 GB, free: 4.645 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.008965, allocations: 8.031 kB / 0.7614 GB, free: 4.637 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.539e-05/0.009041, allocations: 36.69 kB / 0.7614 GB, free: 4.602 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.009339, allocations: 205.2 kB / 0.7616 GB, free: 4.375 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.009361, allocations: 12.88 kB / 0.7616 GB, free: 4.363 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/0.009412, allocations: 24.38 kB / 0.7616 GB, free: 4.34 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.009944, allocations: 298 kB / 0.7619 GB, free: 4.023 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.009961, allocations: 0 / 0.7619 GB, free: 4.023 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.00999, allocations: 12 kB / 0.7619 GB, free: 4.012 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.009998, allocations: 8 kB / 0.7619 GB, free: 4.004 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004804/0.01048, allocations: 224.5 kB / 0.7621 GB, free: 3.773 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.01174, allocations: 0.6808 MB / 0.7628 GB, free: 3.051 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000519/0.01226, allocations: 251.5 kB / 0.7631 GB, free: 2.789 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.01253, allocations: 151.5 kB / 0.7632 GB, free: 2.629 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.01255, allocations: 7.516 kB / 0.7632 GB, free: 2.625 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005301/0.01308, allocations: 351.4 kB / 0.7635 GB, free: 2.23 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.01308, allocations: 0 / 0.7635 GB, free: 2.23 MB / 0.5887 GB Notification: Performance of matching and sorting (n=35): time 0.002338/0.01542, allocations: 1.089 MB / 0.7646 GB, free: 1.047 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/0.01559, allocations: 225.5 kB / 0.7648 GB, free: 0.7773 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.01586, allocations: 225.7 kB / 0.765 GB, free: 0.5547 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 4.386e-05/0.0159, allocations: 41.69 kB / 0.7651 GB, free: 0.5078 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.01604, allocations: 156.8 kB / 0.7652 GB, free: 356 kB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.01615, allocations: 111.1 kB / 0.7653 GB, free: 244 kB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.01626, allocations: 73.69 kB / 0.7654 GB, free: 164 kB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0001994/0.01646, allocations: 338.8 kB / 0.7657 GB, free: 15.82 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.01681, allocations: 207 kB / 0.7659 GB, free: 15.6 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.01724, allocations: 310.5 kB / 0.7662 GB, free: 15.23 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.0186, allocations: 0.788 MB / 0.767 GB, free: 14.34 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01861, allocations: 0 / 0.767 GB, free: 14.34 MB / 0.6043 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009264/0.01953, allocations: 0.5591 MB / 0.7675 GB, free: 13.73 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 7.897e-05/0.01961, allocations: 89.09 kB / 0.7676 GB, free: 13.63 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.01962, allocations: 4 kB / 0.7676 GB, free: 13.62 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.01964, allocations: 4 kB / 0.7676 GB, free: 13.62 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.01997, allocations: 79.89 kB / 0.7677 GB, free: 13.54 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.01999, allocations: 11.92 kB / 0.7677 GB, free: 13.53 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.02019, allocations: 23.98 kB / 0.7677 GB, free: 13.51 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/0.02022, allocations: 20 kB / 0.7678 GB, free: 13.49 MB / 0.6043 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.0003052/0.02053, allocations: 253.4 kB / 0.768 GB, free: 13.22 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.02058, allocations: 31.52 kB / 0.768 GB, free: 13.19 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.527e-05/0.02065, allocations: 34.95 kB / 0.7681 GB, free: 13.16 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.02065, allocations: 0 / 0.7681 GB, free: 13.16 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.02066, allocations: 3.938 kB / 0.7681 GB, free: 13.15 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.02066, allocations: 4 kB / 0.7681 GB, free: 13.15 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.02188, allocations: 0.7565 MB / 0.7688 GB, free: 12.33 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.02188, allocations: 0 / 0.7688 GB, free: 12.33 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.02218, allocations: 71.83 kB / 0.7689 GB, free: 12.26 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.02218, allocations: 0 / 0.7689 GB, free: 12.26 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.02221, allocations: 8 kB / 0.7689 GB, free: 12.25 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.02221, allocations: 4 kB / 0.7689 GB, free: 12.25 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.02221, allocations: 0 / 0.7689 GB, free: 12.25 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.02337, allocations: 0.7327 MB / 0.7696 GB, free: 11.46 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.02341, allocations: 23.84 kB / 0.7696 GB, free: 11.44 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.057e-05/0.02346, allocations: 12 kB / 0.7696 GB, free: 11.43 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.02366, allocations: 15.98 kB / 0.7697 GB, free: 11.41 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.485e-05/0.02375, allocations: 35.89 kB / 0.7697 GB, free: 11.38 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.02378, allocations: 11.98 kB / 0.7697 GB, free: 11.36 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.0001833/0.02396, allocations: 169.2 kB / 0.7699 GB, free: 11.2 MB / 0.6043 GB Notification: Performance of sort global known variables: time 6.1e-08/0.02396, allocations: 0 / 0.7699 GB, free: 11.2 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0003484/0.02431, allocations: 84 kB / 0.7699 GB, free: 11.12 MB / 0.6043 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.0001417/0.02445, allocations: 116.4 kB / 0.77 GB, free: 11 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.001071/0.02553, allocations: 0.5686 MB / 0.7706 GB, free: 10.37 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.02553, allocations: 4 kB / 0.7706 GB, free: 10.36 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0004142/0.02595, allocations: 302.1 kB / 0.7709 GB, free: 10.03 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005463/0.02649, allocations: 91.52 kB / 0.771 GB, free: 9.945 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.028, allocations: 0.828 MB / 0.7718 GB, free: 9.102 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001714/0.02817, allocations: 159.5 kB / 0.7719 GB, free: 8.926 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 0.0001257/0.0283, allocations: 38.91 kB / 0.772 GB, free: 8.887 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.457e-05/0.02836, allocations: 24.5 kB / 0.772 GB, free: 8.863 MB / 0.6043 GB Notification: Performance of SimCode: time 5.01e-07/0.02836, allocations: 0 / 0.772 GB, free: 8.863 MB / 0.6043 GB Notification: Performance of Templates: time 0.009345/0.03771, allocations: 4.308 MB / 0.7762 GB, free: 4.793 MB / 0.6043 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: 9.13502543605864]