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.00238/0.00238, allocations: 105.5 kB / 18.95 MB, free: 1.18 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.002824/0.002824, allocations: 219.6 kB / 22.25 MB, free: 3.57 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.701/1.701, allocations: 230.6 MB / 256 MB, free: 9.625 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.751/3.751, allocations: 335.2 MB / 0.6325 GB, free: 7.199 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.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.003963/0.003963, allocations: 71.89 kB / 0.868 GB, free: 5.707 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2527, allocations: 112.8 MB / 0.9782 GB, free: 4.621 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Pharmacokinetic.Models.PK_1C): time 0.003805/0.2565, allocations: 2.131 MB / 0.9803 GB, free: 2.48 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.2577, allocations: 0.5882 MB / 0.9808 GB, free: 1.891 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.136e-05/0.2578, allocations: 0 / 0.9808 GB, free: 1.891 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.2579, allocations: 23.78 kB / 0.9809 GB, free: 1.867 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.2581, allocations: 71.41 kB / 0.9809 GB, free: 1.797 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.2584, allocations: 51.88 kB / 0.981 GB, free: 1.746 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.2587, allocations: 234.9 kB / 0.9812 GB, free: 1.516 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.2588, allocations: 37.94 kB / 0.9812 GB, free: 1.477 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.259, allocations: 83.66 kB / 0.9813 GB, free: 1.395 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002267/0.2592, allocations: 95.59 kB / 0.9814 GB, free: 1.301 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 3.873e-05/0.2592, allocations: 16 kB / 0.9814 GB, free: 1.285 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 4.263e-05/0.2593, allocations: 16 kB / 0.9815 GB, free: 1.27 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 5.018e-05/0.2593, allocations: 39.78 kB / 0.9815 GB, free: 1.23 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.2594, allocations: 79.66 kB / 0.9816 GB, free: 1.152 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.2597, allocations: 191.2 kB / 0.9817 GB, free: 0.9648 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2597, allocations: 0 / 0.9817 GB, free: 0.9648 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2597, allocations: 3.938 kB / 0.9818 GB, free: 0.9609 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.2597, allocations: 4 kB / 0.9818 GB, free: 0.957 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.0009821/0.2607, allocations: 484.7 kB / 0.9822 GB, free: 452 kB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2608, allocations: 14.05 kB / 0.9822 GB, free: 440 kB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.112e-05/0.2608, allocations: 20.8 kB / 0.9823 GB, free: 420 kB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.2611, allocations: 178.7 kB / 0.9824 GB, free: 216 kB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2611, allocations: 8.375 kB / 0.9824 GB, free: 208 kB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.021e-05/0.2612, allocations: 19.94 kB / 0.9824 GB, free: 188 kB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.2616, allocations: 204.7 kB / 0.9826 GB, free: 15.96 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.2616, allocations: 4 kB / 0.9826 GB, free: 15.96 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.2617, allocations: 4 kB / 0.9827 GB, free: 15.95 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.2617, allocations: 4 kB / 0.9827 GB, free: 15.95 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003778/0.262, allocations: 142.1 kB / 0.9828 GB, free: 15.8 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.2632, allocations: 496.8 kB / 0.9833 GB, free: 15.29 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004468/0.2636, allocations: 172 kB / 0.9834 GB, free: 15.11 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.2638, allocations: 98.52 kB / 0.9835 GB, free: 15 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.2639, allocations: 0 / 0.9835 GB, free: 15 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004192/0.2643, allocations: 233.8 kB / 0.9837 GB, free: 14.74 MB / 0.698 GB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.2643, allocations: 0 / 0.9837 GB, free: 14.74 MB / 0.698 GB Notification: Performance of matching and sorting (n=22): time 0.001695/0.266, allocations: 0.7113 MB / 0.9844 GB, free: 13.97 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.2661, allocations: 140.5 kB / 0.9846 GB, free: 13.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.2663, allocations: 194.3 kB / 0.9848 GB, free: 13.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.2664, allocations: 33.7 kB / 0.9848 GB, free: 13.56 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.2665, allocations: 128.4 kB / 0.9849 GB, free: 13.43 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.5e-05/0.2666, allocations: 71.44 kB / 0.985 GB, free: 13.36 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.852e-05/0.2667, allocations: 57.88 kB / 0.985 GB, free: 13.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.2668, allocations: 334.8 kB / 0.9854 GB, free: 12.96 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/0.2671, allocations: 140.9 kB / 0.9855 GB, free: 12.81 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.2674, allocations: 225.6 kB / 0.9857 GB, free: 12.54 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.2685, allocations: 0.5228 MB / 0.9862 GB, free: 11.95 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2685, allocations: 0 / 0.9862 GB, free: 11.95 MB / 0.698 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007108/0.2692, allocations: 410.9 kB / 0.9866 GB, free: 11.52 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.384e-05/0.2693, allocations: 63.41 kB / 0.9867 GB, free: 11.45 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.2693, allocations: 0 / 0.9867 GB, free: 11.45 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.2693, allocations: 4 kB / 0.9867 GB, free: 11.44 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.2696, allocations: 55.84 kB / 0.9867 GB, free: 11.39 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.2696, allocations: 7.984 kB / 0.9867 GB, free: 11.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.2697, allocations: 20.23 kB / 0.9868 GB, free: 11.36 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.2698, allocations: 16 kB / 0.9868 GB, free: 11.34 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.0002534/0.27, allocations: 199.2 kB / 0.987 GB, free: 11.14 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/0.2701, allocations: 19.86 kB / 0.987 GB, free: 11.12 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.897e-05/0.2701, allocations: 21.95 kB / 0.987 GB, free: 11.09 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.2701, allocations: 7.938 kB / 0.987 GB, free: 11.09 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2701, allocations: 0 / 0.987 GB, free: 11.09 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2701, allocations: 0 / 0.987 GB, free: 11.09 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009244/0.2711, allocations: 0.5404 MB / 0.9875 GB, free: 10.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2711, allocations: 0 / 0.9875 GB, free: 10.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/0.2713, allocations: 39.97 kB / 0.9876 GB, free: 10.46 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2713, allocations: 4 kB / 0.9876 GB, free: 10.45 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.2713, allocations: 7.938 kB / 0.9876 GB, free: 10.45 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2713, allocations: 0 / 0.9876 GB, free: 10.45 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2713, allocations: 4 kB / 0.9876 GB, free: 10.44 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008635/0.2722, allocations: 0.5061 MB / 0.9881 GB, free: 9.906 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.2722, allocations: 11.91 kB / 0.9881 GB, free: 9.895 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.201e-05/0.2722, allocations: 12.05 kB / 0.9881 GB, free: 9.883 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.2724, allocations: 15.98 kB / 0.9881 GB, free: 9.867 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.116e-05/0.2725, allocations: 19.97 kB / 0.9881 GB, free: 9.848 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.2725, allocations: 8 kB / 0.9881 GB, free: 9.84 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001537/0.2727, allocations: 148.6 kB / 0.9883 GB, free: 9.695 MB / 0.698 GB Notification: Performance of sort global known variables: time 7e-08/0.2727, allocations: 0 / 0.9883 GB, free: 9.695 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003065/0.273, allocations: 52 kB / 0.9883 GB, free: 9.645 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 0.0001302/0.2731, allocations: 114.7 kB / 0.9884 GB, free: 9.531 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006741/0.2738, allocations: 397.9 kB / 0.9888 GB, free: 9.102 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2738, allocations: 0 / 0.9888 GB, free: 9.102 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.2741, allocations: 177 kB / 0.989 GB, free: 8.91 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.2745, allocations: 64.45 kB / 0.9891 GB, free: 8.848 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.2762, allocations: 0.7099 MB / 0.9897 GB, free: 8.105 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001385/0.2763, allocations: 125.2 kB / 0.9899 GB, free: 7.961 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001023/0.2764, allocations: 25.88 kB / 0.9899 GB, free: 7.93 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.088e-05/0.2765, allocations: 27.42 kB / 0.9899 GB, free: 7.902 MB / 0.698 GB Notification: Performance of SimCode: time 5.51e-07/0.2765, allocations: 0 / 0.9899 GB, free: 7.902 MB / 0.698 GB Notification: Performance of Templates: time 0.4565/0.733, allocations: 3.433 MB / 0.9933 GB, free: 25.83 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Pharmacokinetic.Models.PK_1C.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 10.171246180078015]