Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.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.001161/0.001161, allocations: 100.4 kB / 19.7 MB, free: 444 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.001273/0.001273, allocations: 216.9 kB / 23 MB, free: 2.98 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.044/1.044, allocations: 230.6 MB / 256.8 MB, free: 9.598 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.777/1.777, allocations: 334.3 MB / 0.6323 GB, free: 7.945 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_1C,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C") translateModel(Pharmacolibrary.Pharmacokinetic.Models.PK_1C,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C") [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.001334/0.001334, allocations: 68.17 kB / 0.867 GB, free: 8.145 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1721, allocations: 112.8 MB / 0.9772 GB, free: 7.066 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Pharmacokinetic.Models.PK_1C): time 0.002864/0.175, allocations: 2.137 MB / 0.9793 GB, free: 4.922 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.0008856/0.1759, allocations: 0.5882 MB / 0.9799 GB, free: 4.332 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.191e-05/0.176, allocations: 0 / 0.9799 GB, free: 4.332 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.1761, allocations: 27.72 kB / 0.9799 GB, free: 4.305 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.1763, allocations: 71.41 kB / 0.9799 GB, free: 4.234 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.1765, allocations: 51.88 kB / 0.98 GB, free: 4.184 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.000242/0.1767, allocations: 234.9 kB / 0.9802 GB, free: 3.953 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.1768, allocations: 41.06 kB / 0.9803 GB, free: 3.914 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 9.907e-05/0.1769, allocations: 83.7 kB / 0.9803 GB, free: 3.832 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.1771, allocations: 95.55 kB / 0.9804 GB, free: 3.738 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 3.194e-05/0.1771, allocations: 16 kB / 0.9804 GB, free: 3.723 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 2.867e-05/0.1772, allocations: 16 kB / 0.9805 GB, free: 3.707 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 3.379e-05/0.1772, allocations: 35.84 kB / 0.9805 GB, free: 3.672 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 8.292e-05/0.1773, allocations: 87.59 kB / 0.9806 GB, free: 3.586 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.1775, allocations: 191.2 kB / 0.9808 GB, free: 3.398 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1775, allocations: 0 / 0.9808 GB, free: 3.398 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1775, allocations: 0 / 0.9808 GB, free: 3.398 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.1775, allocations: 0 / 0.9808 GB, free: 3.398 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008243/0.1783, allocations: 480.7 kB / 0.9812 GB, free: 2.887 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1784, allocations: 14.11 kB / 0.9812 GB, free: 2.875 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/0.1784, allocations: 24.78 kB / 0.9813 GB, free: 2.852 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.1786, allocations: 186.7 kB / 0.9814 GB, free: 2.645 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.1786, allocations: 8.375 kB / 0.9814 GB, free: 2.637 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.1787, allocations: 19.94 kB / 0.9815 GB, free: 2.617 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.179, allocations: 192.7 kB / 0.9816 GB, free: 2.41 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.179, allocations: 4 kB / 0.9817 GB, free: 2.406 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.179, allocations: 8 kB / 0.9817 GB, free: 2.398 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.179, allocations: 4 kB / 0.9817 GB, free: 2.395 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002475/0.1793, allocations: 146 kB / 0.9818 GB, free: 2.246 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006344/0.1799, allocations: 485 kB / 0.9823 GB, free: 1.738 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.1802, allocations: 176 kB / 0.9824 GB, free: 1.551 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.1803, allocations: 102.5 kB / 0.9825 GB, free: 1.441 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.1803, allocations: 3.938 kB / 0.9825 GB, free: 1.438 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.1806, allocations: 228.3 kB / 0.9828 GB, free: 1.184 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.1806, allocations: 0 / 0.9828 GB, free: 1.184 MB / 0.6824 GB Notification: Performance of matching and sorting (n=22): time 0.001097/0.1817, allocations: 0.7184 MB / 0.9835 GB, free: 416 kB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.1817, allocations: 140.5 kB / 0.9836 GB, free: 244 kB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.1819, allocations: 194.3 kB / 0.9838 GB, free: 40 kB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.1819, allocations: 33.7 kB / 0.9838 GB, free: 0 / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 8.081e-05/0.182, allocations: 132.4 kB / 0.9839 GB, free: 15.87 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.663e-05/0.182, allocations: 67.44 kB / 0.984 GB, free: 15.8 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-05/0.1821, allocations: 53.88 kB / 0.984 GB, free: 15.74 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.1822, allocations: 338.8 kB / 0.9844 GB, free: 15.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.1824, allocations: 144.9 kB / 0.9845 GB, free: 15.25 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.1826, allocations: 225.6 kB / 0.9847 GB, free: 14.98 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006564/0.1832, allocations: 0.5228 MB / 0.9852 GB, free: 14.38 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1832, allocations: 0 / 0.9852 GB, free: 14.38 MB / 0.698 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000476/0.1837, allocations: 411 kB / 0.9856 GB, free: 13.95 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.1837, allocations: 59.41 kB / 0.9857 GB, free: 13.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1837, allocations: 0 / 0.9857 GB, free: 13.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.1838, allocations: 4 kB / 0.9857 GB, free: 13.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1839, allocations: 59.84 kB / 0.9857 GB, free: 13.82 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1839, allocations: 7.984 kB / 0.9858 GB, free: 13.81 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.1841, allocations: 15.98 kB / 0.9858 GB, free: 13.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.1841, allocations: 12 kB / 0.9858 GB, free: 13.79 MB / 0.698 GB Warning: Assuming fixed start value for the following 6 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 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 central.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,$PRE.central.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,central.rising,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 2 * 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.0001747/0.1843, allocations: 195.5 kB / 0.986 GB, free: 13.58 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.1843, allocations: 23.84 kB / 0.986 GB, free: 13.56 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.164e-05/0.1843, allocations: 29.95 kB / 0.986 GB, free: 13.53 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1843, allocations: 7.938 kB / 0.986 GB, free: 13.52 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1843, allocations: 0 / 0.986 GB, free: 13.52 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1843, allocations: 0 / 0.986 GB, free: 13.52 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005817/0.1849, allocations: 0.5355 MB / 0.9865 GB, free: 12.94 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1849, allocations: 3.938 kB / 0.9865 GB, free: 12.93 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.1851, allocations: 43.91 kB / 0.9866 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1851, allocations: 3.938 kB / 0.9866 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.1851, allocations: 8 kB / 0.9866 GB, free: 12.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.1851, allocations: 8 kB / 0.9866 GB, free: 12.87 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1851, allocations: 4 kB / 0.9866 GB, free: 12.87 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005471/0.1856, allocations: 0.4958 MB / 0.9871 GB, free: 12.34 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.389e-05/0.1857, allocations: 11.91 kB / 0.9871 GB, free: 12.33 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.425e-05/0.1857, allocations: 12.05 kB / 0.9871 GB, free: 12.32 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.1858, allocations: 15.98 kB / 0.9871 GB, free: 12.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.502e-05/0.1859, allocations: 19.97 kB / 0.9872 GB, free: 12.28 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.1859, allocations: 8 kB / 0.9872 GB, free: 12.27 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.754e-05/0.186, allocations: 152.5 kB / 0.9873 GB, free: 12.12 MB / 0.698 GB Notification: Performance of sort global known variables: time 9e-08/0.186, allocations: 0 / 0.9873 GB, free: 12.12 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003054/0.1863, allocations: 56 kB / 0.9874 GB, free: 12.07 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.variableDose.TotalCumulativeMass) * Number of discrete variables: 8 ($whenCondition1,$whenCondition2,$whenCondition3,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 6 (periodicDose.pulse.count,central.Cmin,$whenCondition3,central.Cmax,$whenCondition2,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 8.339e-05/0.1864, allocations: 109.6 kB / 0.9875 GB, free: 11.96 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005556/0.1869, allocations: 386.4 kB / 0.9878 GB, free: 11.54 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1869, allocations: 4.062 kB / 0.9878 GB, free: 11.54 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.1871, allocations: 173 kB / 0.988 GB, free: 11.35 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.1875, allocations: 55.97 kB / 0.9881 GB, free: 11.29 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.1885, allocations: 0.7366 MB / 0.9888 GB, free: 10.52 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.897e-05/0.1886, allocations: 129.2 kB / 0.9889 GB, free: 10.37 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.273e-05/0.1886, allocations: 19.44 kB / 0.9889 GB, free: 10.35 MB / 0.698 GB Notification: Performance of SimCode: time 5.21e-07/0.1886, allocations: 0 / 0.9889 GB, free: 10.35 MB / 0.698 GB Notification: Performance of Templates: time 0.3239/0.5125, allocations: 2.805 MB / 0.9917 GB, free: 26.78 MB / 0.698 GB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.sim & ./Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C > Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.542026028037071]