Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.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.0009178/0.0009178, allocations: 108.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.0008791/0.0008791, allocations: 216.9 kB / 23 MB, free: 2.977 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.034/1.034, allocations: 230.6 MB / 256.8 MB, free: 9.621 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.753/1.753, allocations: 334.2 MB / 0.6323 GB, free: 7.965 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.PKOneCompartmentSimplestModel,tolerance=1e-09,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel") translateModel(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel,tolerance=1e-09,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel") [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.001695/0.001695, allocations: 63.91 kB / 0.867 GB, free: 8.008 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.176, allocations: 112.8 MB / 0.9772 GB, free: 6.93 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel): time 0.003137/0.1792, allocations: 1.667 MB / 0.9788 GB, free: 5.25 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.0002917/0.1795, allocations: 87.75 kB / 0.9789 GB, free: 5.164 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.414e-05/0.1795, allocations: 3.938 kB / 0.9789 GB, free: 5.16 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.1796, allocations: 11.92 kB / 0.9789 GB, free: 5.148 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.1797, allocations: 19.84 kB / 0.9789 GB, free: 5.129 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001115/0.1799, allocations: 23.91 kB / 0.9789 GB, free: 5.105 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.18, allocations: 83.66 kB / 0.979 GB, free: 5.023 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.1801, allocations: 8.188 kB / 0.979 GB, free: 5.016 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 4.257e-05/0.1802, allocations: 31.86 kB / 0.9791 GB, free: 4.984 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 7.636e-05/0.1802, allocations: 31.84 kB / 0.9791 GB, free: 4.953 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.1802, allocations: 4 kB / 0.9791 GB, free: 4.949 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.1803, allocations: 12 kB / 0.9791 GB, free: 4.938 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 2.23e-05/0.1803, allocations: 7.938 kB / 0.9791 GB, free: 4.93 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 4.776e-05/0.1803, allocations: 35.86 kB / 0.9792 GB, free: 4.895 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.1805, allocations: 67.73 kB / 0.9792 GB, free: 4.828 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1805, allocations: 0 / 0.9792 GB, free: 4.828 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1805, allocations: 0 / 0.9792 GB, free: 4.828 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.1805, allocations: 0 / 0.9792 GB, free: 4.828 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004623/0.1809, allocations: 319.8 kB / 0.9795 GB, free: 4.48 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.181, allocations: 10.11 kB / 0.9795 GB, free: 4.473 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.699e-05/0.181, allocations: 8.891 kB / 0.9795 GB, free: 4.465 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.1811, allocations: 122.5 kB / 0.9797 GB, free: 4.32 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.1811, allocations: 8.375 kB / 0.9797 GB, free: 4.312 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.1812, allocations: 8.375 kB / 0.9797 GB, free: 4.305 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.1813, allocations: 107.2 kB / 0.9798 GB, free: 4.188 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.1813, allocations: 4 kB / 0.9798 GB, free: 4.184 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.1814, allocations: 4 kB / 0.9798 GB, free: 4.18 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.1814, allocations: 0 / 0.9798 GB, free: 4.18 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.203e-05/0.1814, allocations: 81.64 kB / 0.9799 GB, free: 4.094 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000381/0.1818, allocations: 252.3 kB / 0.9801 GB, free: 3.816 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.1819, allocations: 92.25 kB / 0.9802 GB, free: 3.711 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.424e-05/0.182, allocations: 58.55 kB / 0.9802 GB, free: 3.645 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.182, allocations: 4 kB / 0.9802 GB, free: 3.641 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.1822, allocations: 168.6 kB / 0.9804 GB, free: 3.445 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.1822, allocations: 3.938 kB / 0.9804 GB, free: 3.441 MB / 0.6824 GB Notification: Performance of matching and sorting (n=13): time 0.0006839/0.1828, allocations: 489.6 kB / 0.9809 GB, free: 2.898 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.1829, allocations: 140.5 kB / 0.981 GB, free: 2.73 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.502e-05/0.183, allocations: 105.8 kB / 0.9811 GB, free: 2.617 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.183, allocations: 29.7 kB / 0.9811 GB, free: 2.582 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 3.932e-05/0.183, allocations: 96.02 kB / 0.9812 GB, free: 2.484 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.1831, allocations: 51.67 kB / 0.9813 GB, free: 2.434 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.603e-05/0.1831, allocations: 29.7 kB / 0.9813 GB, free: 2.398 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 7.663e-05/0.1832, allocations: 322.8 kB / 0.9816 GB, free: 2.074 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.75e-05/0.1832, allocations: 67.02 kB / 0.9817 GB, free: 1.996 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.424e-05/0.1833, allocations: 93.92 kB / 0.9818 GB, free: 1.883 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000239/0.1835, allocations: 270.4 kB / 0.982 GB, free: 1.582 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1835, allocations: 0 / 0.982 GB, free: 1.582 MB / 0.6824 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001816/0.1837, allocations: 196.9 kB / 0.9822 GB, free: 1.371 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.1837, allocations: 33.7 kB / 0.9823 GB, free: 1.332 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1838, allocations: 0 / 0.9823 GB, free: 1.332 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1838, allocations: 7.984 kB / 0.9823 GB, free: 1.324 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.471e-05/0.1839, allocations: 20 kB / 0.9823 GB, free: 1.305 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1839, allocations: 7.922 kB / 0.9823 GB, free: 1.297 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.052e-05/0.1839, allocations: 15.92 kB / 0.9823 GB, free: 1.281 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.1839, allocations: 8.125 kB / 0.9823 GB, free: 1.273 MB / 0.6824 GB Warning: Assuming fixed start value for the following 4 variables: central.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" 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: 5 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.central.rising,central.rising,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.0001369/0.1841, allocations: 165.7 kB / 0.9825 GB, free: 1.102 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/0.1841, allocations: 7.953 kB / 0.9825 GB, free: 1.094 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.671e-05/0.1841, allocations: 12.44 kB / 0.9825 GB, free: 1.078 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1841, allocations: 0 / 0.9825 GB, free: 1.078 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1841, allocations: 4 kB / 0.9825 GB, free: 1.074 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.1841, allocations: 3.938 kB / 0.9825 GB, free: 1.07 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003101/0.1844, allocations: 413.5 kB / 0.9829 GB, free: 0.6172 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1844, allocations: 0 / 0.9829 GB, free: 0.6172 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.046e-05/0.1845, allocations: 19.98 kB / 0.9829 GB, free: 0.5977 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1845, allocations: 288 / 0.9829 GB, free: 0.5977 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.1845, allocations: 8 kB / 0.9829 GB, free: 0.5898 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1845, allocations: 3.938 kB / 0.9829 GB, free: 0.5859 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1845, allocations: 3.938 kB / 0.9829 GB, free: 0.582 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.1848, allocations: 358.4 kB / 0.9833 GB, free: 204 kB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 1.009e-05/0.1848, allocations: 15.95 kB / 0.9833 GB, free: 188 kB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.1848, allocations: 0 / 0.9833 GB, free: 188 kB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.052e-05/0.1848, allocations: 7.938 kB / 0.9833 GB, free: 180 kB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.1849, allocations: 12.03 kB / 0.9833 GB, free: 168 kB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.1849, allocations: 0 / 0.9833 GB, free: 168 kB / 0.6824 GB Notification: Performance of sorting global known variables: time 2.975e-05/0.1849, allocations: 95.27 kB / 0.9834 GB, free: 72 kB / 0.6824 GB Notification: Performance of sort global known variables: time 7e-08/0.1849, allocations: 0 / 0.9834 GB, free: 72 kB / 0.6824 GB Notification: Performance of remove unused functions: time 0.0001692/0.1851, allocations: 28 kB / 0.9834 GB, free: 44 kB / 0.6824 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (central.C,central.AUC,elim.MExc) * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,central.Cmax,central.Cmin,central.rising) * Number of discrete states: 5 (central.Cmin,$whenCondition2,central.Cmax,$whenCondition1,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 8.344e-05/0.1852, allocations: 103.2 kB / 0.9835 GB, free: 15.93 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000186/0.1853, allocations: 202.7 kB / 0.9837 GB, free: 15.71 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1853, allocations: 0 / 0.9837 GB, free: 15.71 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 7.014e-05/0.1854, allocations: 129 kB / 0.9838 GB, free: 15.57 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.1856, allocations: 19.98 kB / 0.9838 GB, free: 15.55 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000583/0.1862, allocations: 474.1 kB / 0.9843 GB, free: 15.05 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.1864, allocations: 83.33 kB / 0.9844 GB, free: 14.95 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.89e-05/0.1864, allocations: 11.72 kB / 0.9844 GB, free: 14.93 MB / 0.698 GB Notification: Performance of SimCode: time 5.62e-07/0.1864, allocations: 0 / 0.9844 GB, free: 14.93 MB / 0.698 GB Notification: Performance of Templates: time 0.002099/0.1885, allocations: 1.229 MB / 0.9856 GB, free: 13.71 MB / 0.698 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.353092699078843]