Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.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.0009699/0.0009699, allocations: 100.4 kB / 19.7 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.001033/0.001033, allocations: 215.1 kB / 23 MB, free: 2.945 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.059/1.059, allocations: 230.6 MB / 256.8 MB, free: 9.578 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.82/1.82, allocations: 334.3 MB / 0.6323 GB, free: 7.867 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.Examples.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") translateModel(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") [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.001456/0.001456, allocations: 71.89 kB / 0.867 GB, free: 7.93 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1815, allocations: 112.8 MB / 0.9772 GB, free: 6.848 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic): time 0.00241/0.1839, allocations: 1.95 MB / 0.9791 GB, free: 4.887 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.0008082/0.1847, allocations: 0.5298 MB / 0.9796 GB, free: 4.355 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.352e-05/0.1848, allocations: 0 / 0.9796 GB, free: 4.355 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.1849, allocations: 19.8 kB / 0.9796 GB, free: 4.336 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.185, allocations: 47.62 kB / 0.9797 GB, free: 4.289 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001856/0.1852, allocations: 47.88 kB / 0.9797 GB, free: 4.242 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.1854, allocations: 191.2 kB / 0.9799 GB, free: 4.055 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1855, allocations: 29.89 kB / 0.9799 GB, free: 4.016 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 9.368e-05/0.1856, allocations: 67.78 kB / 0.98 GB, free: 3.949 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 9.878e-05/0.1857, allocations: 59.7 kB / 0.98 GB, free: 3.891 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.1858, allocations: 16 kB / 0.9801 GB, free: 3.875 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 2.134e-05/0.1858, allocations: 16 kB / 0.9801 GB, free: 3.859 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.1858, allocations: 43.77 kB / 0.9801 GB, free: 3.816 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 7.063e-05/0.1859, allocations: 55.8 kB / 0.9802 GB, free: 3.762 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.1861, allocations: 163.4 kB / 0.9803 GB, free: 3.602 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1861, allocations: 0 / 0.9803 GB, free: 3.602 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1861, allocations: 0 / 0.9803 GB, free: 3.602 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.1861, allocations: 3.984 kB / 0.9803 GB, free: 3.598 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006254/0.1867, allocations: 435.3 kB / 0.9808 GB, free: 3.133 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.1868, allocations: 10.11 kB / 0.9808 GB, free: 3.125 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.1868, allocations: 16.84 kB / 0.9808 GB, free: 3.109 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.187, allocations: 154.3 kB / 0.9809 GB, free: 2.934 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.187, allocations: 8.375 kB / 0.9809 GB, free: 2.926 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.369e-05/0.187, allocations: 16.12 kB / 0.9809 GB, free: 2.91 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.1876, allocations: 162.6 kB / 0.9811 GB, free: 2.742 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1876, allocations: 7.953 kB / 0.9811 GB, free: 2.734 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.1876, allocations: 8 kB / 0.9811 GB, free: 2.727 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.1876, allocations: 4 kB / 0.9811 GB, free: 2.723 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.1878, allocations: 133.5 kB / 0.9812 GB, free: 2.586 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005019/0.1883, allocations: 364.1 kB / 0.9816 GB, free: 2.199 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.1886, allocations: 172.1 kB / 0.9818 GB, free: 2.016 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.1887, allocations: 90.52 kB / 0.9818 GB, free: 1.918 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.1887, allocations: 4 kB / 0.9818 GB, free: 1.914 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.1889, allocations: 230.5 kB / 0.9821 GB, free: 1.66 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.1889, allocations: 0 / 0.9821 GB, free: 1.66 MB / 0.6824 GB Notification: Performance of matching and sorting (n=21): time 0.0009683/0.1899, allocations: 0.6794 MB / 0.9827 GB, free: 0.918 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.19, allocations: 136.5 kB / 0.9829 GB, free: 0.7539 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.1901, allocations: 156.2 kB / 0.983 GB, free: 0.5938 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.1901, allocations: 33.7 kB / 0.983 GB, free: 0.5547 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.1901, allocations: 112.4 kB / 0.9832 GB, free: 452 kB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 3.735e-05/0.1902, allocations: 59.5 kB / 0.9832 GB, free: 392 kB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.71e-05/0.1902, allocations: 57.62 kB / 0.9833 GB, free: 328 kB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.1903, allocations: 334.7 kB / 0.9836 GB, free: 15.98 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.1905, allocations: 140.6 kB / 0.9837 GB, free: 15.83 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.1906, allocations: 210.8 kB / 0.9839 GB, free: 15.59 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005574/0.1912, allocations: 0.5155 MB / 0.9844 GB, free: 15.01 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1912, allocations: 0 / 0.9844 GB, free: 15.01 MB / 0.698 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003719/0.1916, allocations: 380.2 kB / 0.9848 GB, free: 14.61 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.1916, allocations: 67.39 kB / 0.9848 GB, free: 14.53 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1916, allocations: 3.938 kB / 0.9849 GB, free: 14.53 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1916, allocations: 4 kB / 0.9849 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.1917, allocations: 47.91 kB / 0.9849 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1918, allocations: 3.938 kB / 0.9849 GB, free: 14.47 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.845e-05/0.1918, allocations: 19.98 kB / 0.9849 GB, free: 14.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.1919, allocations: 8 kB / 0.9849 GB, free: 14.45 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: 7 * 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 (30): * Single equations (assignments): 28 * 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.0001706/0.192, allocations: 196.8 kB / 0.9851 GB, free: 14.24 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.192, allocations: 11.91 kB / 0.9851 GB, free: 14.23 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.1921, allocations: 21.22 kB / 0.9852 GB, free: 14.21 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1921, allocations: 4 kB / 0.9852 GB, free: 14.21 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1921, allocations: 4 kB / 0.9852 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1921, allocations: 0 / 0.9852 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004964/0.1926, allocations: 0.5211 MB / 0.9857 GB, free: 13.63 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1926, allocations: 0 / 0.9857 GB, free: 13.63 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.1927, allocations: 31.97 kB / 0.9857 GB, free: 13.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1927, allocations: 4 kB / 0.9857 GB, free: 13.59 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1927, allocations: 4 kB / 0.9857 GB, free: 13.59 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1927, allocations: 7.938 kB / 0.9857 GB, free: 13.58 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1927, allocations: 4 kB / 0.9857 GB, free: 13.58 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004744/0.1932, allocations: 496.9 kB / 0.9862 GB, free: 13.06 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.896e-05/0.1932, allocations: 15.97 kB / 0.9862 GB, free: 13.05 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.1932, allocations: 4 kB / 0.9862 GB, free: 13.04 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.908e-05/0.1933, allocations: 11.98 kB / 0.9862 GB, free: 13.03 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.1934, allocations: 23.95 kB / 0.9862 GB, free: 13.01 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.1934, allocations: 8 kB / 0.9863 GB, free: 13 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.961e-05/0.1935, allocations: 111.3 kB / 0.9864 GB, free: 12.89 MB / 0.698 GB Notification: Performance of sort global known variables: time 8.1e-08/0.1935, allocations: 7.938 kB / 0.9864 GB, free: 12.88 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001992/0.1937, allocations: 48 kB / 0.9864 GB, free: 12.84 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 (18): * Single equations (assignments): 15 * 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.503e-05/0.1937, allocations: 108.9 kB / 0.9865 GB, free: 12.72 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000372/0.1941, allocations: 375.7 kB / 0.9869 GB, free: 12.31 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1941, allocations: 0 / 0.9869 GB, free: 12.31 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.1943, allocations: 173.4 kB / 0.987 GB, free: 12.12 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.1945, allocations: 46.69 kB / 0.9871 GB, free: 12.09 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009084/0.1954, allocations: 0.6799 MB / 0.9877 GB, free: 11.36 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.1957, allocations: 107.5 kB / 0.9878 GB, free: 11.23 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.646e-05/0.1958, allocations: 15.44 kB / 0.9879 GB, free: 11.22 MB / 0.698 GB Notification: Performance of SimCode: time 5.81e-07/0.1958, allocations: 0 / 0.9879 GB, free: 11.22 MB / 0.698 GB Notification: Performance of Templates: time 0.003621/0.1994, allocations: 2.277 MB / 0.9901 GB, free: 8.949 MB / 0.698 GB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.711990235839039]