Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.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.001387/0.001387, allocations: 100.4 kB / 19.7 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.001705/0.001705, allocations: 215.3 kB / 23 MB, free: 2.945 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.003/1.003, allocations: 230.6 MB / 256.8 MB, free: 9.602 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.811/1.811, allocations: 334.3 MB / 0.6323 GB, free: 7.953 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.DevModels.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic") translateModel(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic") [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.001895/0.001895, allocations: 71.88 kB / 0.867 GB, free: 8.02 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1932, allocations: 112.8 MB / 0.9772 GB, free: 6.945 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.00286/0.196, allocations: 1.948 MB / 0.9791 GB, free: 4.984 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.0008818/0.1969, allocations: 0.526 MB / 0.9796 GB, free: 4.457 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.146e-05/0.197, allocations: 0 / 0.9796 GB, free: 4.457 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.1971, allocations: 19.8 kB / 0.9796 GB, free: 4.438 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.1973, allocations: 47.56 kB / 0.9797 GB, free: 4.391 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001878/0.1975, allocations: 47.94 kB / 0.9797 GB, free: 4.344 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.1977, allocations: 187.2 kB / 0.9799 GB, free: 4.16 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1978, allocations: 29.89 kB / 0.9799 GB, free: 4.121 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.1979, allocations: 67.78 kB / 0.98 GB, free: 4.055 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.1981, allocations: 71.67 kB / 0.98 GB, free: 3.984 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.1981, allocations: 16 kB / 0.9801 GB, free: 3.969 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 2.545e-05/0.1981, allocations: 12 kB / 0.9801 GB, free: 3.957 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 3.962e-05/0.1981, allocations: 31.86 kB / 0.9801 GB, free: 3.926 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 8.319e-05/0.1982, allocations: 67.72 kB / 0.9802 GB, free: 3.859 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.1984, allocations: 159.4 kB / 0.9803 GB, free: 3.703 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1984, allocations: 0 / 0.9803 GB, free: 3.703 MB / 0.6824 GB Notification: Performance of FrontEnd: time 2.955e-06/0.1984, allocations: 4 kB / 0.9803 GB, free: 3.699 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.1984, allocations: 0 / 0.9803 GB, free: 3.699 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.0007045/0.1991, allocations: 435.5 kB / 0.9807 GB, free: 3.234 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1992, allocations: 10.11 kB / 0.9807 GB, free: 3.227 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.592e-05/0.1992, allocations: 20.84 kB / 0.9808 GB, free: 3.207 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.1994, allocations: 154.3 kB / 0.9809 GB, free: 3.031 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.1994, allocations: 4.375 kB / 0.9809 GB, free: 3.027 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.604e-05/0.1995, allocations: 20.12 kB / 0.9809 GB, free: 3.008 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.1998, allocations: 158.6 kB / 0.9811 GB, free: 2.844 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.1998, allocations: 7.938 kB / 0.9811 GB, free: 2.836 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.1998, allocations: 7.938 kB / 0.9811 GB, free: 2.828 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1998, allocations: 8 kB / 0.9811 GB, free: 2.82 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.2, allocations: 141.5 kB / 0.9812 GB, free: 2.676 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.2006, allocations: 364.2 kB / 0.9816 GB, free: 2.289 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.2009, allocations: 166.8 kB / 0.9818 GB, free: 2.113 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.2011, allocations: 98.47 kB / 0.9818 GB, free: 2.008 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.2011, allocations: 3.984 kB / 0.9819 GB, free: 2.004 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.2014, allocations: 224.5 kB / 0.9821 GB, free: 1.754 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=20): time 2.835e-06/0.2014, allocations: 0 / 0.9821 GB, free: 1.754 MB / 0.6824 GB Notification: Performance of matching and sorting (n=21): time 0.001145/0.2025, allocations: 0.6794 MB / 0.9827 GB, free: 1.012 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.2026, allocations: 136.5 kB / 0.9829 GB, free: 0.8477 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.2027, allocations: 156.2 kB / 0.983 GB, free: 0.6875 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.2027, allocations: 29.7 kB / 0.983 GB, free: 0.6523 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.2028, allocations: 116.4 kB / 0.9831 GB, free: 0.5352 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 4.442e-05/0.2028, allocations: 59.5 kB / 0.9832 GB, free: 488 kB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.814e-05/0.2029, allocations: 45.7 kB / 0.9832 GB, free: 436 kB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 9.268e-05/0.203, allocations: 334.8 kB / 0.9836 GB, free: 92 kB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.2032, allocations: 140.7 kB / 0.9837 GB, free: 15.93 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.2034, allocations: 218.7 kB / 0.9839 GB, free: 15.68 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006785/0.2041, allocations: 0.5116 MB / 0.9844 GB, free: 15.11 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2041, allocations: 3.938 kB / 0.9844 GB, free: 15.11 MB / 0.698 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004663/0.2045, allocations: 374.6 kB / 0.9848 GB, free: 14.71 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.2046, allocations: 67.39 kB / 0.9848 GB, free: 14.63 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.2046, allocations: 8.125 kB / 0.9848 GB, free: 14.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.2046, allocations: 7.938 kB / 0.9849 GB, free: 14.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.2048, allocations: 47.91 kB / 0.9849 GB, free: 14.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.2048, allocations: 4 kB / 0.9849 GB, free: 14.57 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.2049, allocations: 15.98 kB / 0.9849 GB, free: 14.55 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.2049, allocations: 12 kB / 0.9849 GB, free: 14.54 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.0001925/0.2051, allocations: 182.8 kB / 0.9851 GB, free: 14.35 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.2051, allocations: 15.91 kB / 0.9851 GB, free: 14.34 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.2052, allocations: 29.2 kB / 0.9851 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2052, allocations: 0 / 0.9851 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2052, allocations: 0 / 0.9851 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2052, allocations: 0 / 0.9851 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005802/0.2058, allocations: 0.523 MB / 0.9857 GB, free: 13.73 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2058, allocations: 4 kB / 0.9857 GB, free: 13.73 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.2059, allocations: 27.98 kB / 0.9857 GB, free: 13.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.2059, allocations: 0 / 0.9857 GB, free: 13.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.2059, allocations: 11.98 kB / 0.9857 GB, free: 13.69 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2059, allocations: 3.938 kB / 0.9857 GB, free: 13.69 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.2059, allocations: 3.984 kB / 0.9857 GB, free: 13.68 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005585/0.2065, allocations: 0.4962 MB / 0.9862 GB, free: 13.16 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.056e-05/0.2065, allocations: 11.91 kB / 0.9862 GB, free: 13.14 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/0.2065, allocations: 8.062 kB / 0.9862 GB, free: 13.14 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.2067, allocations: 11.98 kB / 0.9862 GB, free: 13.12 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/0.2067, allocations: 23.97 kB / 0.9862 GB, free: 13.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.2067, allocations: 7.984 kB / 0.9863 GB, free: 13.09 MB / 0.698 GB Notification: Performance of sorting global known variables: time 7.014e-05/0.2068, allocations: 111.3 kB / 0.9864 GB, free: 12.98 MB / 0.698 GB Notification: Performance of sort global known variables: time 9e-08/0.2068, allocations: 0 / 0.9864 GB, free: 12.98 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000291/0.2071, allocations: 44 kB / 0.9864 GB, free: 12.94 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.0001035/0.2072, allocations: 115.2 kB / 0.9865 GB, free: 12.82 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004292/0.2076, allocations: 375.7 kB / 0.9869 GB, free: 12.41 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2076, allocations: 3.938 kB / 0.9869 GB, free: 12.41 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.2078, allocations: 168.9 kB / 0.987 GB, free: 12.22 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.2082, allocations: 43 kB / 0.9871 GB, free: 12.18 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009741/0.2091, allocations: 0.6754 MB / 0.9877 GB, free: 11.47 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.395e-05/0.2092, allocations: 107.5 kB / 0.9878 GB, free: 11.34 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.246e-05/0.2093, allocations: 19.44 kB / 0.9879 GB, free: 11.32 MB / 0.698 GB Notification: Performance of SimCode: time 6.21e-07/0.2093, allocations: 0 / 0.9879 GB, free: 11.32 MB / 0.698 GB Notification: Performance of Templates: time 0.003713/0.213, allocations: 2.274 MB / 0.9901 GB, free: 9.055 MB / 0.698 GB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic > Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.814133574953303]