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.00136/0.00136, allocations: 104.3 kB / 19.71 MB, free: 440 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.001601/0.001601, allocations: 212.2 kB / 23 MB, free: 2.969 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.005/1.005, allocations: 230.6 MB / 256.8 MB, free: 9.605 MB / 202.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.725/1.725, allocations: 334.2 MB / 0.6323 GB, free: 7.941 MB / 442.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: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 67.89 kB / 0.8671 GB, free: 8.098 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.161, allocations: 112.8 MB / 0.9772 GB, free: 7.012 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Pharmacokinetic.Models.PK_2C): time 0.002727/0.1637, allocations: 2.503 MB / 0.9797 GB, free: 4.496 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.0008366/0.1646, allocations: 0.6703 MB / 0.9803 GB, free: 3.824 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.033e-05/0.1647, allocations: 4 kB / 0.9803 GB, free: 3.82 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.1648, allocations: 31.64 kB / 0.9804 GB, free: 3.789 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.165, allocations: 107.1 kB / 0.9805 GB, free: 3.684 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.1652, allocations: 71.84 kB / 0.9805 GB, free: 3.613 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.1654, allocations: 350.2 kB / 0.9809 GB, free: 3.27 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.1656, allocations: 48.91 kB / 0.9809 GB, free: 3.219 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1657, allocations: 135.6 kB / 0.981 GB, free: 3.086 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.1659, allocations: 131.3 kB / 0.9812 GB, free: 2.957 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 2.86e-05/0.1659, allocations: 24 kB / 0.9812 GB, free: 2.934 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 3.251e-05/0.1659, allocations: 24 kB / 0.9812 GB, free: 2.91 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 3.985e-05/0.166, allocations: 55.72 kB / 0.9813 GB, free: 2.855 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 9.067e-05/0.1661, allocations: 127.4 kB / 0.9814 GB, free: 2.73 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.1663, allocations: 278.8 kB / 0.9817 GB, free: 2.457 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1663, allocations: 0 / 0.9817 GB, free: 2.457 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.643e-06/0.1663, allocations: 0 / 0.9817 GB, free: 2.457 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.1663, allocations: 0 / 0.9817 GB, free: 2.457 MB / 0.6824 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.0007041/0.167, allocations: 0.5886 MB / 0.9822 GB, free: 1.82 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.167, allocations: 10.11 kB / 0.9822 GB, free: 1.812 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.216e-05/0.1671, allocations: 32.75 kB / 0.9823 GB, free: 1.781 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.1673, allocations: 205.9 kB / 0.9825 GB, free: 1.555 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1673, allocations: 16.81 kB / 0.9825 GB, free: 1.539 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.1673, allocations: 31.88 kB / 0.9825 GB, free: 1.508 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.1677, allocations: 293.1 kB / 0.9828 GB, free: 1.191 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1677, allocations: 3.938 kB / 0.9828 GB, free: 1.188 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.1677, allocations: 8 kB / 0.9828 GB, free: 1.18 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.1677, allocations: 4 kB / 0.9828 GB, free: 1.176 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.168, allocations: 228.4 kB / 0.983 GB, free: 0.9414 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007872/0.1688, allocations: 0.6805 MB / 0.9837 GB, free: 224 kB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.1691, allocations: 233.9 kB / 0.9839 GB, free: 15.97 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.1692, allocations: 148.4 kB / 0.9841 GB, free: 15.81 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.1692, allocations: 4 kB / 0.9841 GB, free: 15.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003113/0.1695, allocations: 365.8 kB / 0.9844 GB, free: 15.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.204e-06/0.1695, allocations: 4 kB / 0.9844 GB, free: 15.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=35): time 0.001494/0.171, allocations: 1.082 MB / 0.9855 GB, free: 14.22 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/0.1711, allocations: 221.6 kB / 0.9857 GB, free: 13.96 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.1713, allocations: 228.9 kB / 0.9859 GB, free: 13.73 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1713, allocations: 41.69 kB / 0.9859 GB, free: 13.68 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.584e-05/0.1714, allocations: 152.8 kB / 0.9861 GB, free: 13.52 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.833e-05/0.1714, allocations: 115.1 kB / 0.9862 GB, free: 13.41 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.875e-05/0.1715, allocations: 69.69 kB / 0.9863 GB, free: 13.34 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.92e-05/0.1716, allocations: 342.8 kB / 0.9866 GB, free: 12.99 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.1717, allocations: 206.9 kB / 0.9868 GB, free: 12.77 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.172, allocations: 312.3 kB / 0.9871 GB, free: 12.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007351/0.1727, allocations: 0.7791 MB / 0.9878 GB, free: 11.52 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1727, allocations: 0 / 0.9878 GB, free: 11.52 MB / 0.698 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004927/0.1732, allocations: 0.5655 MB / 0.9884 GB, free: 10.91 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.1732, allocations: 85.11 kB / 0.9885 GB, free: 10.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1732, allocations: 4 kB / 0.9885 GB, free: 10.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1732, allocations: 4 kB / 0.9885 GB, free: 10.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.1734, allocations: 84.2 kB / 0.9886 GB, free: 10.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.1734, allocations: 19.92 kB / 0.9886 GB, free: 10.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.1736, allocations: 27.92 kB / 0.9886 GB, free: 10.67 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.1736, allocations: 16 kB / 0.9886 GB, free: 10.65 MB / 0.698 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.0001891/0.1738, allocations: 243.3 kB / 0.9889 GB, free: 10.39 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.1738, allocations: 31.81 kB / 0.9889 GB, free: 10.36 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.591e-05/0.1738, allocations: 30.95 kB / 0.9889 GB, free: 10.34 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1738, allocations: 4 kB / 0.9889 GB, free: 10.33 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1738, allocations: 0 / 0.9889 GB, free: 10.33 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.1738, allocations: 7.938 kB / 0.9889 GB, free: 10.32 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006769/0.1745, allocations: 0.7591 MB / 0.9897 GB, free: 9.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1745, allocations: 0 / 0.9897 GB, free: 9.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.1747, allocations: 63.89 kB / 0.9897 GB, free: 9.438 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.1747, allocations: 0 / 0.9897 GB, free: 9.438 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1747, allocations: 8 kB / 0.9897 GB, free: 9.43 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.1747, allocations: 7.938 kB / 0.9897 GB, free: 9.422 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1747, allocations: 4 kB / 0.9897 GB, free: 9.418 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006025/0.1753, allocations: 0.7287 MB / 0.9905 GB, free: 8.637 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.1753, allocations: 23.8 kB / 0.9905 GB, free: 8.613 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.1754, allocations: 12 kB / 0.9905 GB, free: 8.602 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.705e-05/0.1755, allocations: 19.92 kB / 0.9905 GB, free: 8.582 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.904e-05/0.1755, allocations: 35.94 kB / 0.9905 GB, free: 8.547 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.1755, allocations: 15.94 kB / 0.9906 GB, free: 8.531 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.793e-05/0.1756, allocations: 164.5 kB / 0.9907 GB, free: 8.371 MB / 0.698 GB Notification: Performance of sort global known variables: time 7e-08/0.1756, allocations: 4 kB / 0.9907 GB, free: 8.367 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002235/0.1759, allocations: 84 kB / 0.9908 GB, free: 8.285 MB / 0.698 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 7.998e-05/0.1759, allocations: 119.7 kB / 0.9909 GB, free: 8.16 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004669/0.1764, allocations: 0.5684 MB / 0.9915 GB, free: 7.527 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1764, allocations: 3.938 kB / 0.9915 GB, free: 7.523 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.1766, allocations: 310.1 kB / 0.9918 GB, free: 7.184 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.177, allocations: 84.52 kB / 0.9919 GB, free: 7.102 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3075/0.4844, allocations: 0.9998 MB / 0.9928 GB, free: 26.61 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.597e-05/0.4845, allocations: 159.8 kB / 0.993 GB, free: 26.54 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.216e-05/0.4846, allocations: 31.81 kB / 0.993 GB, free: 26.53 MB / 0.698 GB Notification: Performance of SimCode: time 1.002e-06/0.4846, allocations: 0 / 0.993 GB, free: 26.53 MB / 0.698 GB Notification: Performance of Templates: time 0.004032/0.4887, allocations: 3.841 MB / 0.9968 GB, free: 26.33 MB / 0.698 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 > Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_2C.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.412391762016341]