Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.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.001891/0.001891, allocations: 105.5 kB / 18.95 MB, free: 1.176 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.001956/0.001956, allocations: 215.3 kB / 22.25 MB, free: 3.566 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.686/1.686, allocations: 230.6 MB / 256 MB, free: 9.613 MB / 202.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.72/3.72, allocations: 335.3 MB / 0.6325 GB, free: 7.242 MB / 442.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.Examples.PK_1C_LithiumCarbonate,tolerance=1e-09,outputFormat="empty",numberOfIntervals=864000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate") translateModel(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate,tolerance=1e-09,outputFormat="empty",numberOfIntervals=864000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate") [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.003898/0.003898, allocations: 71.89 kB / 0.868 GB, free: 5.762 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2576, allocations: 112.8 MB / 0.9782 GB, free: 4.68 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.003708/0.2613, allocations: 2.009 MB / 0.9802 GB, free: 2.66 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.00109/0.2624, allocations: 0.5299 MB / 0.9807 GB, free: 2.129 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.088e-05/0.2624, allocations: 4 kB / 0.9807 GB, free: 2.125 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.2626, allocations: 23.78 kB / 0.9807 GB, free: 2.102 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.2627, allocations: 55.55 kB / 0.9807 GB, free: 2.047 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.2629, allocations: 51.88 kB / 0.9808 GB, free: 1.996 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0003024/0.2632, allocations: 195.1 kB / 0.981 GB, free: 1.805 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.2633, allocations: 21.97 kB / 0.981 GB, free: 1.777 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.2635, allocations: 79.7 kB / 0.9811 GB, free: 1.699 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.2636, allocations: 67.69 kB / 0.9811 GB, free: 1.633 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.2637, allocations: 16 kB / 0.9812 GB, free: 1.617 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 3.965e-05/0.2637, allocations: 16 kB / 0.9812 GB, free: 1.602 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 4.476e-05/0.2637, allocations: 27.92 kB / 0.9812 GB, free: 1.574 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.2639, allocations: 79.64 kB / 0.9813 GB, free: 1.496 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.2641, allocations: 159.3 kB / 0.9814 GB, free: 1.34 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2641, allocations: 0 / 0.9814 GB, free: 1.34 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2641, allocations: 0 / 0.9814 GB, free: 1.34 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.2641, allocations: 4 kB / 0.9814 GB, free: 1.336 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.00116/0.2653, allocations: 441 kB / 0.9819 GB, free: 0.8633 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.2653, allocations: 10.11 kB / 0.9819 GB, free: 0.8555 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.968e-05/0.2654, allocations: 20.84 kB / 0.9819 GB, free: 0.8359 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.2657, allocations: 162.3 kB / 0.982 GB, free: 0.6523 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.2657, allocations: 16.31 kB / 0.9821 GB, free: 0.6367 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.2657, allocations: 24.02 kB / 0.9821 GB, free: 0.6133 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003878/0.2661, allocations: 158.4 kB / 0.9822 GB, free: 460 kB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.2661, allocations: 0 / 0.9822 GB, free: 460 kB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2662, allocations: 0 / 0.9822 GB, free: 460 kB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2662, allocations: 4 kB / 0.9822 GB, free: 456 kB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003696/0.2665, allocations: 145.6 kB / 0.9824 GB, free: 304 kB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007939/0.2673, allocations: 368.1 kB / 0.9827 GB, free: 15.91 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004237/0.2677, allocations: 160.2 kB / 0.9829 GB, free: 15.73 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.268, allocations: 90.52 kB / 0.983 GB, free: 15.64 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.268, allocations: 4 kB / 0.983 GB, free: 15.63 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004235/0.2684, allocations: 236.4 kB / 0.9832 GB, free: 15.37 MB / 0.698 GB Notification: Performance of pre-optimization done (n=20): time 1.713e-06/0.2684, allocations: 0 / 0.9832 GB, free: 15.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=21): time 0.001699/0.2701, allocations: 0.6812 MB / 0.9839 GB, free: 14.63 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.2702, allocations: 140.5 kB / 0.984 GB, free: 14.46 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.2704, allocations: 156.5 kB / 0.9841 GB, free: 14.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.2704, allocations: 37.7 kB / 0.9842 GB, free: 14.26 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.2705, allocations: 120.4 kB / 0.9843 GB, free: 14.14 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.806e-05/0.2706, allocations: 71.38 kB / 0.9844 GB, free: 14.07 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.2707, allocations: 49.56 kB / 0.9844 GB, free: 14.01 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000199/0.2709, allocations: 330.8 kB / 0.9847 GB, free: 13.68 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002746/0.2712, allocations: 136.6 kB / 0.9849 GB, free: 13.53 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003339/0.2715, allocations: 214.7 kB / 0.9851 GB, free: 13.28 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.2726, allocations: 0.4965 MB / 0.9855 GB, free: 12.72 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2726, allocations: 4 kB / 0.9855 GB, free: 12.71 MB / 0.698 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007124/0.2733, allocations: 386.2 kB / 0.9859 GB, free: 12.31 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.229e-05/0.2734, allocations: 63.41 kB / 0.986 GB, free: 12.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.2734, allocations: 7.938 kB / 0.986 GB, free: 12.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2734, allocations: 0 / 0.986 GB, free: 12.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.2736, allocations: 48.09 kB / 0.986 GB, free: 12.18 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.2736, allocations: 8 kB / 0.986 GB, free: 12.17 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.2738, allocations: 15.98 kB / 0.9861 GB, free: 12.16 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.2738, allocations: 15.98 kB / 0.9861 GB, free: 12.14 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.0002762/0.2741, allocations: 192.7 kB / 0.9862 GB, free: 11.94 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.278e-05/0.2741, allocations: 19.84 kB / 0.9863 GB, free: 11.92 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.531e-05/0.2742, allocations: 29.2 kB / 0.9863 GB, free: 11.89 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.2742, allocations: 0 / 0.9863 GB, free: 11.89 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2742, allocations: 4 kB / 0.9863 GB, free: 11.89 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2742, allocations: 0 / 0.9863 GB, free: 11.89 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009438/0.2752, allocations: 0.5225 MB / 0.9868 GB, free: 11.32 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.2752, allocations: 0 / 0.9868 GB, free: 11.32 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.2754, allocations: 39.98 kB / 0.9868 GB, free: 11.28 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/0.2754, allocations: 0 / 0.9868 GB, free: 11.28 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.2754, allocations: 7.984 kB / 0.9869 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2754, allocations: 3.938 kB / 0.9869 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2754, allocations: 0 / 0.9869 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008846/0.2763, allocations: 0.489 MB / 0.9873 GB, free: 10.75 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.2763, allocations: 11.91 kB / 0.9873 GB, free: 10.73 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.2764, allocations: 12.06 kB / 0.9874 GB, free: 10.72 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.2765, allocations: 15.98 kB / 0.9874 GB, free: 10.71 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.511e-05/0.2766, allocations: 19.97 kB / 0.9874 GB, free: 10.69 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.2767, allocations: 7.984 kB / 0.9874 GB, free: 10.68 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001211/0.2768, allocations: 116.9 kB / 0.9875 GB, free: 10.57 MB / 0.698 GB Notification: Performance of sort global known variables: time 7e-08/0.2768, allocations: 0 / 0.9875 GB, free: 10.57 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005416/0.2773, allocations: 48 kB / 0.9876 GB, free: 10.52 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 0.000191/0.2775, allocations: 107.2 kB / 0.9877 GB, free: 10.41 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00101/0.2785, allocations: 379.6 kB / 0.988 GB, free: 9.992 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2785, allocations: 0 / 0.988 GB, free: 9.992 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.2789, allocations: 177 kB / 0.9882 GB, free: 9.801 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006737/0.2796, allocations: 54.09 kB / 0.9882 GB, free: 9.754 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.2818, allocations: 0.6669 MB / 0.9889 GB, free: 9.051 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/0.282, allocations: 116.4 kB / 0.989 GB, free: 8.918 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001297/0.2821, allocations: 17.47 kB / 0.989 GB, free: 8.902 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.329e-05/0.2822, allocations: 15.44 kB / 0.989 GB, free: 8.887 MB / 0.698 GB Notification: Performance of SimCode: time 6.31e-07/0.2822, allocations: 7.938 kB / 0.989 GB, free: 8.879 MB / 0.698 GB Notification: Performance of Templates: time 0.4465/0.7287, allocations: 2.896 MB / 0.9919 GB, free: 26.14 MB / 0.698 GB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 11.468729669926688]