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.001855/0.001855, allocations: 93.47 kB / 19.44 MB, free: 336 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.002038/0.002038, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.521/1.521, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.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.468/3.468, allocations: 274.5 MB / 0.5215 GB, free: 14.16 MB / 458.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.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: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.6472 GB, free: 39.09 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.264e-05/2.422e-05, allocations: 3.625 kB / 0.6472 GB, free: 39.08 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.002386/0.002411, allocations: 2.007 MB / 0.6492 GB, free: 37.75 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0007482/0.003159, allocations: 0.5414 MB / 0.6497 GB, free: 37.4 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.983e-05/0.003229, allocations: 1.469 kB / 0.6497 GB, free: 37.4 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.003331, allocations: 22.62 kB / 0.6497 GB, free: 37.38 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.003459, allocations: 51.92 kB / 0.6498 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001391/0.003598, allocations: 41.92 kB / 0.6498 GB, free: 37.34 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.003793, allocations: 196 kB / 0.65 GB, free: 37.29 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.887e-05/0.003891, allocations: 27.19 kB / 0.65 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.004029, allocations: 103.7 kB / 0.6501 GB, free: 37.22 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.004139, allocations: 57.22 kB / 0.6502 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 3.202e-05/0.004171, allocations: 15.12 kB / 0.6502 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.97e-05/0.004201, allocations: 20.25 kB / 0.6502 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.004232, allocations: 36.39 kB / 0.6502 GB, free: 37.17 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 6.694e-05/0.004298, allocations: 54.81 kB / 0.6503 GB, free: 37.15 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.004471, allocations: 160.9 kB / 0.6505 GB, free: 37.08 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.004472, allocations: 1.625 kB / 0.6505 GB, free: 37.08 MB / 0.5262 GB Notification: Performance of FrontEnd: time 9.42e-07/0.004473, allocations: 0 / 0.6505 GB, free: 37.08 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.004477, allocations: 0 / 0.6505 GB, free: 37.08 MB / 0.5262 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.0006142/0.005091, allocations: 0.5294 MB / 0.651 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.005121, allocations: 9.281 kB / 0.651 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.369e-05/0.005184, allocations: 26.5 kB / 0.651 GB, free: 36.57 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.005334, allocations: 168.5 kB / 0.6512 GB, free: 36.41 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.005348, allocations: 8.25 kB / 0.6512 GB, free: 36.41 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.005379, allocations: 11.81 kB / 0.6512 GB, free: 36.41 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.00562, allocations: 151.5 kB / 0.6513 GB, free: 36.32 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.005636, allocations: 3.938 kB / 0.6513 GB, free: 36.32 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.00565, allocations: 6.219 kB / 0.6513 GB, free: 36.31 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.005655, allocations: 1.688 kB / 0.6513 GB, free: 36.31 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.005916, allocations: 138.6 kB / 0.6515 GB, free: 36.25 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.006429, allocations: 421.5 kB / 0.6519 GB, free: 35.91 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.006714, allocations: 177.4 kB / 0.652 GB, free: 35.81 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.006841, allocations: 87.41 kB / 0.6521 GB, free: 35.75 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.006869, allocations: 4.406 kB / 0.6521 GB, free: 35.75 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.007117, allocations: 226.4 kB / 0.6524 GB, free: 35.57 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.007119, allocations: 0 / 0.6524 GB, free: 35.57 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.001091/0.008209, allocations: 0.6856 MB / 0.653 GB, free: 35.11 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.008243, allocations: 140.1 kB / 0.6532 GB, free: 34.95 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.008356, allocations: 223.8 kB / 0.6534 GB, free: 34.77 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.008373, allocations: 32.08 kB / 0.6534 GB, free: 34.73 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.788e-05/0.008421, allocations: 163 kB / 0.6536 GB, free: 34.58 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.008465, allocations: 80.45 kB / 0.6536 GB, free: 34.52 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.115e-05/0.008536, allocations: 59.41 kB / 0.6537 GB, free: 34.48 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.519e-05/0.008601, allocations: 0.512 MB / 0.6542 GB, free: 33.97 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.008766, allocations: 141.6 kB / 0.6543 GB, free: 33.87 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.008954, allocations: 234.7 kB / 0.6545 GB, free: 33.65 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004732/0.009428, allocations: 407 kB / 0.6549 GB, free: 33.33 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.00943, allocations: 1.625 kB / 0.6549 GB, free: 33.33 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004702/0.0099, allocations: 384.3 kB / 0.6553 GB, free: 33.09 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.00993, allocations: 66.36 kB / 0.6554 GB, free: 33.02 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.009935, allocations: 3.531 kB / 0.6554 GB, free: 33.02 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.009949, allocations: 2.25 kB / 0.6554 GB, free: 33.02 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.01014, allocations: 49.72 kB / 0.6554 GB, free: 33.02 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.01015, allocations: 7.531 kB / 0.6554 GB, free: 33.01 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.01027, allocations: 17.27 kB / 0.6554 GB, free: 33.01 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.01029, allocations: 12.12 kB / 0.6555 GB, free: 33 MB / 0.5262 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.0001593/0.01045, allocations: 241.8 kB / 0.6557 GB, free: 32.79 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.424e-05/0.0105, allocations: 24.69 kB / 0.6557 GB, free: 32.78 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.254e-05/0.01054, allocations: 15.53 kB / 0.6557 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.01054, allocations: 1.906 kB / 0.6557 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.01055, allocations: 1.5 kB / 0.6557 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.01055, allocations: 8.297 kB / 0.6557 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006641/0.01122, allocations: 0.5782 MB / 0.6563 GB, free: 32.32 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01122, allocations: 0.5625 kB / 0.6563 GB, free: 32.32 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.0114, allocations: 35.25 kB / 0.6563 GB, free: 32.32 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.0114, allocations: 5.062 kB / 0.6563 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.01142, allocations: 6.75 kB / 0.6563 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.01143, allocations: 1.125 kB / 0.6563 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01143, allocations: 1.906 kB / 0.6563 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006472/0.01207, allocations: 0.5354 MB / 0.6569 GB, free: 31.94 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.965e-05/0.01209, allocations: 14.5 kB / 0.6569 GB, free: 31.93 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.307e-05/0.01213, allocations: 7.219 kB / 0.6569 GB, free: 31.93 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.01226, allocations: 13.56 kB / 0.6569 GB, free: 31.93 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.734e-05/0.01233, allocations: 23.86 kB / 0.6569 GB, free: 31.92 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.01234, allocations: 7.781 kB / 0.6569 GB, free: 31.92 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 6.589e-05/0.01241, allocations: 159.8 kB / 0.6571 GB, free: 31.79 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.01241, allocations: 0 / 0.6571 GB, free: 31.79 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002721/0.01268, allocations: 50.88 kB / 0.6571 GB, free: 31.78 MB / 0.5262 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 8.075e-05/0.01276, allocations: 105.5 kB / 0.6572 GB, free: 31.69 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0004207/0.01318, allocations: 396.9 kB / 0.6576 GB, free: 31.4 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01318, allocations: 0 / 0.6576 GB, free: 31.4 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.01336, allocations: 185.6 kB / 0.6578 GB, free: 31.27 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.01373, allocations: 48.05 kB / 0.6578 GB, free: 31.27 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007461/0.01447, allocations: 0.5313 MB / 0.6584 GB, free: 30.9 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.521e-05/0.01454, allocations: 110.7 kB / 0.6585 GB, free: 30.82 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 7.413e-05/0.01461, allocations: 20.02 kB / 0.6585 GB, free: 30.81 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.01466, allocations: 21.88 kB / 0.6585 GB, free: 30.8 MB / 0.5262 GB Notification: Performance of SimCode: time 4.81e-07/0.01466, allocations: 0 / 0.6585 GB, free: 30.8 MB / 0.5262 GB Notification: Performance of Templates: time 0.005404/0.02007, allocations: 2.509 MB / 0.6609 GB, free: 30.59 MB / 0.5262 GB " [Timeout remaining time 660] 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.314815617050044]