Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.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.00186/0.00186, allocations: 109.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.002017/0.002017, allocations: 217.7 kB / 22.25 MB, free: 3.574 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.615/1.615, allocations: 230.6 MB / 256 MB, free: 9.586 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.819/3.819, allocations: 335.3 MB / 0.6325 GB, free: 7.23 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.DevModels.PKTwoCompartmentModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel") translateModel(Pharmacolibrary.DevModels.PKTwoCompartmentModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel") [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.01137/0.01137, allocations: 79.88 kB / 0.868 GB, free: 5.766 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2838, allocations: 112.8 MB / 0.9782 GB, free: 4.688 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKTwoCompartmentModel): time 0.004198/0.288, allocations: 2.25 MB / 0.9804 GB, free: 2.426 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.2893, allocations: 0.5883 MB / 0.981 GB, free: 1.836 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.996e-05/0.2894, allocations: 0 / 0.981 GB, free: 1.836 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 8.371e-05/0.2894, allocations: 31.7 kB / 0.981 GB, free: 1.805 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0002623/0.2897, allocations: 79.33 kB / 0.9811 GB, free: 1.727 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.2899, allocations: 63.92 kB / 0.9811 GB, free: 1.664 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0003835/0.2903, allocations: 282.8 kB / 0.9814 GB, free: 1.387 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2905, allocations: 48.75 kB / 0.9814 GB, free: 1.336 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.2907, allocations: 107.6 kB / 0.9815 GB, free: 1.23 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.2909, allocations: 95.55 kB / 0.9816 GB, free: 1.137 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 4.624e-05/0.2909, allocations: 24 kB / 0.9817 GB, free: 1.113 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 5e-05/0.2909, allocations: 20 kB / 0.9817 GB, free: 1.094 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 6.554e-05/0.291, allocations: 51.83 kB / 0.9817 GB, free: 1.043 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.2912, allocations: 103.5 kB / 0.9818 GB, free: 0.9414 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.2915, allocations: 247 kB / 0.9821 GB, free: 0.6992 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2915, allocations: 0 / 0.9821 GB, free: 0.6992 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2915, allocations: 0 / 0.9821 GB, free: 0.6992 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.2915, allocations: 0 / 0.9821 GB, free: 0.6992 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001113/0.2926, allocations: 0.5186 MB / 0.9826 GB, free: 136 kB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.2927, allocations: 10.11 kB / 0.9826 GB, free: 128 kB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.969e-05/0.2928, allocations: 28.8 kB / 0.9826 GB, free: 100 kB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.2932, allocations: 156.6 kB / 0.9828 GB, free: 15.92 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.2932, allocations: 12.38 kB / 0.9828 GB, free: 15.91 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.339e-05/0.2932, allocations: 27.89 kB / 0.9828 GB, free: 15.88 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005021/0.2937, allocations: 242.1 kB / 0.983 GB, free: 15.62 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.2938, allocations: 7.938 kB / 0.983 GB, free: 15.62 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.2938, allocations: 8 kB / 0.983 GB, free: 15.61 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.2938, allocations: 7.984 kB / 0.983 GB, free: 15.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004861/0.2943, allocations: 223.6 kB / 0.9833 GB, free: 15.37 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.2953, allocations: 472.6 kB / 0.9837 GB, free: 14.88 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005349/0.2958, allocations: 245.9 kB / 0.9839 GB, free: 14.62 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.2961, allocations: 144.2 kB / 0.9841 GB, free: 14.46 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.2961, allocations: 4 kB / 0.9841 GB, free: 14.46 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005497/0.2967, allocations: 347.9 kB / 0.9844 GB, free: 14.07 MB / 0.698 GB Notification: Performance of pre-optimization done (n=31): time 1.643e-06/0.2967, allocations: 0 / 0.9844 GB, free: 14.07 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.002226/0.2989, allocations: 1.052 MB / 0.9854 GB, free: 12.93 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001763/0.2991, allocations: 225.6 kB / 0.9857 GB, free: 12.66 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.2993, allocations: 161.5 kB / 0.9858 GB, free: 12.49 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.2993, allocations: 37.7 kB / 0.9858 GB, free: 12.45 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.2994, allocations: 124.9 kB / 0.986 GB, free: 12.32 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.2995, allocations: 111.1 kB / 0.9861 GB, free: 12.21 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.2997, allocations: 65.69 kB / 0.9861 GB, free: 12.14 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001895/0.2998, allocations: 334.8 kB / 0.9865 GB, free: 11.81 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.3002, allocations: 195 kB / 0.9866 GB, free: 11.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.3006, allocations: 286.6 kB / 0.9869 GB, free: 11.25 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.3019, allocations: 0.7377 MB / 0.9876 GB, free: 10.42 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.302, allocations: 0 / 0.9876 GB, free: 10.42 MB / 0.698 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008643/0.3028, allocations: 0.515 MB / 0.9881 GB, free: 9.863 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.931e-05/0.3029, allocations: 93.09 kB / 0.9882 GB, free: 9.754 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.3029, allocations: 4 kB / 0.9882 GB, free: 9.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.3029, allocations: 4 kB / 0.9882 GB, free: 9.746 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.3032, allocations: 67.91 kB / 0.9883 GB, free: 9.68 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.3033, allocations: 7.984 kB / 0.9883 GB, free: 9.672 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.3035, allocations: 20.23 kB / 0.9883 GB, free: 9.652 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.3035, allocations: 16 kB / 0.9883 GB, free: 9.637 MB / 0.698 GB Warning: Assuming fixed start value for the following 10 variables: 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 intestine.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real blood.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real intestine.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real intestine.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.rising:DISCRETE(fixed = true protected = true ) type: Boolean intestine.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: 21 ($PRE.intestine.Cmin,intestine.Cmin,$PRE.intestine.Cmax,intestine.Cmax,$PRE.blood.Cmin,blood.Cmin,$PRE.blood.Cmax,blood.Cmax,$PRE.blood.rising,$PRE.intestine.rising,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,blood.rising,intestine.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * 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.0003452/0.3038, allocations: 258.8 kB / 0.9886 GB, free: 9.363 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.057e-05/0.3039, allocations: 23.86 kB / 0.9886 GB, free: 9.34 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.925e-05/0.304, allocations: 25.95 kB / 0.9886 GB, free: 9.312 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.304, allocations: 4 kB / 0.9886 GB, free: 9.309 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.304, allocations: 3.938 kB / 0.9886 GB, free: 9.305 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.304, allocations: 0 / 0.9886 GB, free: 9.305 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.3054, allocations: 0.7329 MB / 0.9894 GB, free: 8.512 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3054, allocations: 4 kB / 0.9894 GB, free: 8.508 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.3057, allocations: 43.97 kB / 0.9894 GB, free: 8.465 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.3057, allocations: 7.984 kB / 0.9894 GB, free: 8.457 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.3057, allocations: 8 kB / 0.9894 GB, free: 8.449 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3057, allocations: 0 / 0.9894 GB, free: 8.449 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.3057, allocations: 3.938 kB / 0.9894 GB, free: 8.445 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.3069, allocations: 0.7118 MB / 0.9901 GB, free: 7.684 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/0.307, allocations: 19.92 kB / 0.9901 GB, free: 7.664 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/0.307, allocations: 12 kB / 0.9901 GB, free: 7.652 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.3072, allocations: 15.98 kB / 0.9902 GB, free: 7.637 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3073, allocations: 31.88 kB / 0.9902 GB, free: 7.605 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.3073, allocations: 12 kB / 0.9902 GB, free: 7.594 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000129/0.3075, allocations: 119.2 kB / 0.9903 GB, free: 7.477 MB / 0.698 GB Notification: Performance of sort global known variables: time 7e-08/0.3075, allocations: 0 / 0.9903 GB, free: 7.477 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003933/0.3079, allocations: 72 kB / 0.9904 GB, free: 7.406 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (periodicDose.TotalCumulativeMass,periodicDose.variableDose.TotalCumulativeMass,intestine.C,intestine.AUC,blood.C,blood.AUC) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,periodicDose.pulse.T_start,periodicDose.pulse.count,intestine.Cmax,intestine.Cmin,intestine.rising,blood.Cmax,blood.Cmin,blood.rising) * Number of discrete states: 11 (periodicDose.pulse.count,blood.Cmin,$whenCondition3,blood.Cmax,$whenCondition2,blood.rising,intestine.Cmin,$whenCondition5,intestine.Cmax,$whenCondition4,intestine.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * 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 0.3888/0.6967, allocations: 117.2 kB / 0.9905 GB, free: 26.42 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.6977, allocations: 0.5507 MB / 0.991 GB, free: 26.08 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.6977, allocations: 0 / 0.991 GB, free: 26.08 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.6981, allocations: 299.1 kB / 0.9913 GB, free: 25.89 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006963/0.6988, allocations: 59.25 kB / 0.9914 GB, free: 25.89 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.7005, allocations: 0.8606 MB / 0.9922 GB, free: 25.43 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.7007, allocations: 137 kB / 0.9924 GB, free: 25.35 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001373/0.7008, allocations: 20.17 kB / 0.9924 GB, free: 25.35 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.22e-05/0.7009, allocations: 24.34 kB / 0.9924 GB, free: 25.34 MB / 0.698 GB Notification: Performance of SimCode: time 6.61e-07/0.7009, allocations: 0 / 0.9924 GB, free: 25.34 MB / 0.698 GB Notification: Performance of Templates: time 0.009794/0.7107, allocations: 3.713 MB / 0.996 GB, free: 25.02 MB / 0.698 GB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 10.150059812003747]