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.001271/0.001271, allocations: 72.89 kB / 19.94 MB, free: 4.391 MB / 18.57 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.001091/0.001091, allocations: 173 kB / 23.36 MB, free: 0.9727 MB / 18.57 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.018/1.018, allocations: 177.2 MB / 203.8 MB, free: 5.469 MB / 186.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.645/1.645, allocations: 273.5 MB / 0.5213 GB, free: 14.68 MB / 458.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.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: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 1.312 kB / 0.5954 GB, free: 2.766 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.834e-05/1.966e-05, allocations: 2.312 kB / 0.5954 GB, free: 2.762 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.0023/0.00232, allocations: 2.13 MB / 0.5975 GB, free: 0.6406 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0007962/0.003116, allocations: 0.5531 MB / 0.598 GB, free: 96 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.354e-05/0.003179, allocations: 0 / 0.598 GB, free: 96 kB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 9.999e-05/0.003279, allocations: 24.98 kB / 0.598 GB, free: 72 kB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.003406, allocations: 57.3 kB / 0.5981 GB, free: 32 kB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001557/0.003562, allocations: 47.88 kB / 0.5981 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.000195/0.003757, allocations: 202 kB / 0.5983 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 9.759e-05/0.003855, allocations: 30.62 kB / 0.5984 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.003984, allocations: 108.2 kB / 0.5985 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.004085, allocations: 63.81 kB / 0.5985 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.00411, allocations: 16 kB / 0.5986 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.766e-05/0.004127, allocations: 12 kB / 0.5986 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.00416, allocations: 35.83 kB / 0.5986 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 5.394e-05/0.004214, allocations: 55.91 kB / 0.5986 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.004357, allocations: 127.5 kB / 0.5988 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.004359, allocations: 0 / 0.5988 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of FrontEnd: time 7.22e-07/0.00436, allocations: 0 / 0.5988 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.086e-06/0.004363, allocations: 0 / 0.5988 GB, free: 15.41 MB / 0.5261 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.0004465/0.004809, allocations: 419.6 kB / 0.5992 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.00484, allocations: 8.031 kB / 0.5992 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.874e-05/0.004879, allocations: 20.92 kB / 0.5992 GB, free: 14.94 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.005011, allocations: 141.5 kB / 0.5993 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.005028, allocations: 12.38 kB / 0.5993 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.429e-05/0.005052, allocations: 20.36 kB / 0.5994 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.005201, allocations: 129.2 kB / 0.5995 GB, free: 14.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.005211, allocations: 7.938 kB / 0.5995 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.005221, allocations: 7.984 kB / 0.5995 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.005226, allocations: 4 kB / 0.5995 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.43e-05/0.0053, allocations: 67.2 kB / 0.5996 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000328/0.005628, allocations: 259.6 kB / 0.5998 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.005736, allocations: 104.2 kB / 0.5999 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.773e-05/0.005774, allocations: 54.56 kB / 0.6 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.005783, allocations: 7.938 kB / 0.6 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001575/0.005941, allocations: 196.3 kB / 0.6002 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=20): time 1.282e-06/0.005942, allocations: 0 / 0.6002 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=21): time 0.0005666/0.006509, allocations: 0.4949 MB / 0.6006 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.00656, allocations: 136.5 kB / 0.6008 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.048e-05/0.00664, allocations: 153.9 kB / 0.6009 GB, free: 12.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.006659, allocations: 37.7 kB / 0.601 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.837e-05/0.006697, allocations: 104.5 kB / 0.6011 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.671e-05/0.006734, allocations: 75.36 kB / 0.6011 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-05/0.00678, allocations: 45.67 kB / 0.6012 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.295e-05/0.006863, allocations: 338.8 kB / 0.6015 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.99e-05/0.006923, allocations: 96.64 kB / 0.6016 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.007003, allocations: 160.4 kB / 0.6017 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.007166, allocations: 291.8 kB / 0.602 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.007168, allocations: 0 / 0.602 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001669/0.007334, allocations: 250.5 kB / 0.6023 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.007367, allocations: 59.41 kB / 0.6023 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.007371, allocations: 0 / 0.6023 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.007382, allocations: 4.188 kB / 0.6023 GB, free: 11.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.007499, allocations: 59.91 kB / 0.6024 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.007502, allocations: 0 / 0.6024 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.61e-05/0.007568, allocations: 15.98 kB / 0.6024 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.007578, allocations: 8 kB / 0.6024 GB, free: 11.27 MB / 0.5261 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.0001368/0.007715, allocations: 180.6 kB / 0.6026 GB, free: 11.08 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.007736, allocations: 19.98 kB / 0.6026 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.783e-05/0.007764, allocations: 21.27 kB / 0.6026 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.007766, allocations: 0 / 0.6026 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.007769, allocations: 3.938 kB / 0.6026 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.007772, allocations: 7.938 kB / 0.6026 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.008041, allocations: 354.3 kB / 0.603 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.008043, allocations: 0 / 0.603 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.646e-05/0.008139, allocations: 39.92 kB / 0.603 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.008145, allocations: 7.938 kB / 0.603 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.008155, allocations: 7.922 kB / 0.603 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.008156, allocations: 0 / 0.603 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.008157, allocations: 0 / 0.603 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002031/0.00836, allocations: 337.8 kB / 0.6033 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.395e-05/0.008374, allocations: 11.91 kB / 0.6034 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.008395, allocations: 8 kB / 0.6034 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.369e-05/0.008459, allocations: 11.98 kB / 0.6034 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.008504, allocations: 19.97 kB / 0.6034 GB, free: 10.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.008514, allocations: 11.98 kB / 0.6034 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 2.915e-05/0.008543, allocations: 35.06 kB / 0.6034 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5e-08/0.008544, allocations: 0 / 0.6034 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001543/0.008698, allocations: 52 kB / 0.6035 GB, free: 10.07 MB / 0.5261 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 9.277e-05/0.008791, allocations: 88.34 kB / 0.6036 GB, free: 9.977 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001999/0.00899, allocations: 311 kB / 0.6039 GB, free: 9.629 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.008995, allocations: 4.375 kB / 0.6039 GB, free: 9.625 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 7.759e-05/0.009072, allocations: 145.9 kB / 0.604 GB, free: 9.461 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.009272, allocations: 47.56 kB / 0.6041 GB, free: 9.422 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.01033, allocations: 0.5243 MB / 0.6046 GB, free: 8.871 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.047e-05/0.01037, allocations: 75.98 kB / 0.6046 GB, free: 8.777 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.968e-05/0.01042, allocations: 13.48 kB / 0.6046 GB, free: 8.766 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.01053, allocations: 99.34 kB / 0.6047 GB, free: 8.668 MB / 0.5261 GB Notification: Performance of SimCode: time 6.62e-07/0.01053, allocations: 4 kB / 0.6047 GB, free: 8.664 MB / 0.5261 GB Notification: Performance of Templates: time 0.004208/0.01474, allocations: 2.907 MB / 0.6076 GB, free: 5.906 MB / 0.5261 GB " [Timeout remaining time 660] 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: 5.335232426878065]