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.0009853/0.0009853, allocations: 73.97 kB / 20.65 MB, free: 3.844 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.0009472/0.0009472, allocations: 169.4 kB / 24.06 MB, free: 452 kB / 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 0.9872/0.9872, allocations: 177.1 MB / 204.5 MB, free: 5.121 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.65/1.65, allocations: 273.5 MB / 0.522 GB, free: 14.71 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.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.483e-06/1.483e-06, allocations: 0 / 0.6481 GB, free: 38.41 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.589e-05/1.737e-05, allocations: 2.312 kB / 0.6482 GB, free: 38.41 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.002178/0.002195, allocations: 2.041 MB / 0.6501 GB, free: 37.07 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0006884/0.002884, allocations: 0.5421 MB / 0.6507 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.581e-05/0.00297, allocations: 3.75 kB / 0.6507 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.003079, allocations: 19.12 kB / 0.6507 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.003205, allocations: 54.58 kB / 0.6507 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001472/0.003352, allocations: 38.28 kB / 0.6508 GB, free: 36.66 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.003564, allocations: 197.3 kB / 0.651 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.003677, allocations: 32.45 kB / 0.651 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.003802, allocations: 98.11 kB / 0.6511 GB, free: 36.55 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.003917, allocations: 66.39 kB / 0.6512 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.003948, allocations: 14.41 kB / 0.6512 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.162e-05/0.003969, allocations: 16.56 kB / 0.6512 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.294e-05/0.004002, allocations: 27.16 kB / 0.6512 GB, free: 36.5 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 5.829e-05/0.00406, allocations: 59.53 kB / 0.6513 GB, free: 36.48 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.004211, allocations: 120.5 kB / 0.6514 GB, free: 36.42 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.004213, allocations: 1.281 kB / 0.6514 GB, free: 36.42 MB / 0.5262 GB Notification: Performance of FrontEnd: time 9.82e-07/0.004214, allocations: 0 / 0.6514 GB, free: 36.42 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.004219, allocations: 1.906 kB / 0.6514 GB, free: 36.42 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.0004983/0.004717, allocations: 0.5151 MB / 0.6519 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.004753, allocations: 9.812 kB / 0.6519 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.95e-05/0.004802, allocations: 27.66 kB / 0.6519 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.004939, allocations: 154.8 kB / 0.6521 GB, free: 35.76 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.004961, allocations: 10.06 kB / 0.6521 GB, free: 35.76 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.004987, allocations: 15.97 kB / 0.6521 GB, free: 35.75 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.005154, allocations: 139.1 kB / 0.6522 GB, free: 35.66 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.005168, allocations: 10.2 kB / 0.6522 GB, free: 35.65 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.005178, allocations: 5 kB / 0.6522 GB, free: 35.65 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.005185, allocations: 3.938 kB / 0.6523 GB, free: 35.65 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.395e-05/0.005269, allocations: 78.02 kB / 0.6523 GB, free: 35.61 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003732/0.005642, allocations: 374.6 kB / 0.6527 GB, free: 35.3 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.005767, allocations: 109 kB / 0.6528 GB, free: 35.23 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.531e-05/0.005812, allocations: 61.62 kB / 0.6528 GB, free: 35.18 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.415e-06/0.00582, allocations: 2.188 kB / 0.6528 GB, free: 35.18 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.005975, allocations: 190.2 kB / 0.653 GB, free: 35.02 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.814e-06/0.005977, allocations: 1 kB / 0.653 GB, free: 35.02 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0005835/0.006561, allocations: 0.5458 MB / 0.6536 GB, free: 34.62 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.0066, allocations: 140.2 kB / 0.6537 GB, free: 34.46 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/0.006682, allocations: 199.4 kB / 0.6539 GB, free: 34.29 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.006696, allocations: 32.52 kB / 0.6539 GB, free: 34.25 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.502e-05/0.006741, allocations: 156.7 kB / 0.6541 GB, free: 34.11 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.006776, allocations: 75.5 kB / 0.6541 GB, free: 34.05 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.006833, allocations: 51.73 kB / 0.6542 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.802e-05/0.006891, allocations: 0.5021 MB / 0.6547 GB, free: 33.51 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.725e-05/0.006948, allocations: 95.88 kB / 0.6548 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.007054, allocations: 190.2 kB / 0.655 GB, free: 33.23 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.007276, allocations: 306 kB / 0.6552 GB, free: 32.95 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.007278, allocations: 0 / 0.6552 GB, free: 32.95 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002681/0.007546, allocations: 299.4 kB / 0.6555 GB, free: 32.75 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.007587, allocations: 67.31 kB / 0.6556 GB, free: 32.68 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.007596, allocations: 6.031 kB / 0.6556 GB, free: 32.68 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.007613, allocations: 4.156 kB / 0.6556 GB, free: 32.68 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.007764, allocations: 49.86 kB / 0.6557 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.007775, allocations: 3.531 kB / 0.6557 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.78e-05/0.007852, allocations: 16.03 kB / 0.6557 GB, free: 32.66 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.007868, allocations: 11.38 kB / 0.6557 GB, free: 32.66 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.0001747/0.008043, allocations: 231.2 kB / 0.6559 GB, free: 32.45 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.008072, allocations: 19.53 kB / 0.6559 GB, free: 32.44 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.53e-05/0.008107, allocations: 23.03 kB / 0.6559 GB, free: 32.43 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.008111, allocations: 4.75 kB / 0.6559 GB, free: 32.43 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-06/0.008113, allocations: 0 / 0.6559 GB, free: 32.43 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.008118, allocations: 0 / 0.6559 GB, free: 32.43 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004283/0.008546, allocations: 0.4895 MB / 0.6564 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.008548, allocations: 1.938 kB / 0.6564 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.008678, allocations: 35.97 kB / 0.6565 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.008681, allocations: 2.375 kB / 0.6565 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.008692, allocations: 2.781 kB / 0.6565 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.008695, allocations: 1.781 kB / 0.6565 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.008696, allocations: 0 / 0.6565 GB, free: 32.03 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.008962, allocations: 447.2 kB / 0.6569 GB, free: 31.7 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.487e-05/0.008977, allocations: 12 kB / 0.6569 GB, free: 31.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.008998, allocations: 11.88 kB / 0.6569 GB, free: 31.69 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.371e-05/0.009071, allocations: 13.47 kB / 0.6569 GB, free: 31.68 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.423e-05/0.009126, allocations: 20.41 kB / 0.6569 GB, free: 31.68 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.009138, allocations: 6.938 kB / 0.657 GB, free: 31.68 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 3.936e-05/0.009178, allocations: 151.6 kB / 0.6571 GB, free: 31.55 MB / 0.5262 GB Notification: Performance of sort global known variables: time 5e-08/0.009178, allocations: 0 / 0.6571 GB, free: 31.55 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0001812/0.009359, allocations: 44.69 kB / 0.6571 GB, free: 31.55 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 7.218e-05/0.009431, allocations: 114.4 kB / 0.6573 GB, free: 31.46 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0002069/0.009638, allocations: 303.1 kB / 0.6575 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.00964, allocations: 0.5625 kB / 0.6575 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.009749, allocations: 148 kB / 0.6577 GB, free: 31.09 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.01001, allocations: 44.72 kB / 0.6577 GB, free: 31.08 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.01122, allocations: 0.5656 MB / 0.6583 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.804e-05/0.01126, allocations: 82.17 kB / 0.6584 GB, free: 30.64 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 5.8e-05/0.01132, allocations: 13.58 kB / 0.6584 GB, free: 30.63 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.01146, allocations: 117.8 kB / 0.6585 GB, free: 30.56 MB / 0.5262 GB Notification: Performance of SimCode: time 6.01e-07/0.01146, allocations: 0 / 0.6585 GB, free: 30.56 MB / 0.5262 GB Notification: Performance of Templates: time 0.00437/0.01583, allocations: 2.799 MB / 0.6612 GB, free: 30.3 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: 4.763375211972743]