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.001359/0.001359, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.0009775/0.0009775, allocations: 169 kB / 23.27 MB, free: 1.219 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 0.9588/0.9588, allocations: 177.1 MB / 203.7 MB, free: 5.492 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.647/1.647, allocations: 273.5 MB / 0.5212 GB, free: 14.61 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.503e-06/1.503e-06, allocations: 0 / 0.6474 GB, free: 38.57 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.487e-05/1.637e-05, allocations: 3.656 kB / 0.6474 GB, free: 38.57 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.002728/0.002745, allocations: 2.034 MB / 0.6494 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0008167/0.003561, allocations: 0.5471 MB / 0.6499 GB, free: 36.89 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.973e-05/0.003641, allocations: 1.562 kB / 0.6499 GB, free: 36.89 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 5.659e-05/0.003698, allocations: 19.23 kB / 0.6499 GB, free: 36.88 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.003826, allocations: 51.3 kB / 0.65 GB, free: 36.86 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001324/0.003958, allocations: 42.36 kB / 0.65 GB, free: 36.83 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.000241/0.004199, allocations: 191.5 kB / 0.6502 GB, free: 36.78 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.004326, allocations: 33.17 kB / 0.6502 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.00449, allocations: 102 kB / 0.6503 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.004612, allocations: 58.12 kB / 0.6504 GB, free: 36.7 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.004643, allocations: 15.56 kB / 0.6504 GB, free: 36.7 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.059e-05/0.004673, allocations: 17.94 kB / 0.6504 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.004707, allocations: 34.45 kB / 0.6504 GB, free: 36.67 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 6.751e-05/0.004775, allocations: 60.09 kB / 0.6505 GB, free: 36.64 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.004947, allocations: 118.8 kB / 0.6506 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.004949, allocations: 1.688 kB / 0.6506 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of FrontEnd: time 6.42e-07/0.00495, allocations: 0 / 0.6506 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.004954, allocations: 1.875 kB / 0.6506 GB, free: 36.58 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.0006121/0.005566, allocations: 0.5167 MB / 0.6511 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.005608, allocations: 10 kB / 0.6511 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.143e-05/0.005669, allocations: 25.59 kB / 0.6512 GB, free: 36.08 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.005822, allocations: 155.9 kB / 0.6513 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.005846, allocations: 13.84 kB / 0.6513 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.005878, allocations: 14.69 kB / 0.6513 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.006087, allocations: 138.1 kB / 0.6515 GB, free: 35.83 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.006102, allocations: 3.938 kB / 0.6515 GB, free: 35.82 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.006116, allocations: 1.656 kB / 0.6515 GB, free: 35.82 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.006123, allocations: 1.969 kB / 0.6515 GB, free: 35.82 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.00623, allocations: 84.73 kB / 0.6516 GB, free: 35.78 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000501/0.006731, allocations: 378.5 kB / 0.6519 GB, free: 35.48 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001748/0.006906, allocations: 111.4 kB / 0.652 GB, free: 35.4 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.6e-05/0.006972, allocations: 62.28 kB / 0.6521 GB, free: 35.35 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.006986, allocations: 3.875 kB / 0.6521 GB, free: 35.35 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.007203, allocations: 201.4 kB / 0.6523 GB, free: 35.18 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 2.545e-06/0.007206, allocations: 0 / 0.6523 GB, free: 35.18 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.000757/0.007963, allocations: 0.5372 MB / 0.6528 GB, free: 34.79 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.008, allocations: 135.5 kB / 0.6529 GB, free: 34.63 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.008104, allocations: 199.7 kB / 0.6531 GB, free: 34.45 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.008123, allocations: 34.25 kB / 0.6532 GB, free: 34.42 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/0.008173, allocations: 160.4 kB / 0.6533 GB, free: 34.27 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 4.564e-05/0.008219, allocations: 70.83 kB / 0.6534 GB, free: 34.21 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-05/0.008289, allocations: 57.05 kB / 0.6534 GB, free: 34.17 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.332e-05/0.008352, allocations: 0.4952 MB / 0.6539 GB, free: 33.67 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.719e-05/0.008429, allocations: 99.47 kB / 0.654 GB, free: 33.59 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.008538, allocations: 187.8 kB / 0.6542 GB, free: 33.39 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.008754, allocations: 306.6 kB / 0.6545 GB, free: 33.12 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.008756, allocations: 0 / 0.6545 GB, free: 33.12 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003033/0.009059, allocations: 303.8 kB / 0.6548 GB, free: 32.91 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.009099, allocations: 68.73 kB / 0.6548 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.009107, allocations: 1.688 kB / 0.6548 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.009124, allocations: 2.812 kB / 0.6548 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.00933, allocations: 46.06 kB / 0.6549 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.009338, allocations: 7.188 kB / 0.6549 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.009458, allocations: 22.22 kB / 0.6549 GB, free: 32.83 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.009489, allocations: 9.406 kB / 0.6549 GB, free: 32.83 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.0001635/0.009652, allocations: 230 kB / 0.6551 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.463e-05/0.009687, allocations: 22.56 kB / 0.6552 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.473e-05/0.009721, allocations: 19.16 kB / 0.6552 GB, free: 32.59 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.009725, allocations: 5.781 kB / 0.6552 GB, free: 32.59 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.009728, allocations: 0 / 0.6552 GB, free: 32.59 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.009733, allocations: 6.406 kB / 0.6552 GB, free: 32.59 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004248/0.01016, allocations: 0.4903 MB / 0.6557 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.01016, allocations: 0 / 0.6557 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.01032, allocations: 35.77 kB / 0.6557 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.01032, allocations: 3.969 kB / 0.6557 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.01034, allocations: 8.391 kB / 0.6557 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.01034, allocations: 3.344 kB / 0.6557 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01034, allocations: 0 / 0.6557 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.01071, allocations: 434.8 kB / 0.6561 GB, free: 31.87 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.574e-05/0.01073, allocations: 24.3 kB / 0.6562 GB, free: 31.85 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.01076, allocations: 11.16 kB / 0.6562 GB, free: 31.84 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.01089, allocations: 10.19 kB / 0.6562 GB, free: 31.84 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.01095, allocations: 17.03 kB / 0.6562 GB, free: 31.84 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.01097, allocations: 7.406 kB / 0.6562 GB, free: 31.84 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 6.74e-05/0.01104, allocations: 154.1 kB / 0.6563 GB, free: 31.71 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1e-07/0.01104, allocations: 0.5625 kB / 0.6563 GB, free: 31.71 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0003366/0.01137, allocations: 44.09 kB / 0.6564 GB, free: 31.71 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 0.0001006/0.01147, allocations: 109.1 kB / 0.6565 GB, free: 31.62 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003267/0.0118, allocations: 305.7 kB / 0.6568 GB, free: 31.38 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.0118, allocations: 0 / 0.6568 GB, free: 31.38 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.01195, allocations: 150.5 kB / 0.6569 GB, free: 31.26 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.01233, allocations: 44.25 kB / 0.657 GB, free: 31.25 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.01398, allocations: 0.5557 MB / 0.6575 GB, free: 30.89 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.268e-05/0.01402, allocations: 82.59 kB / 0.6576 GB, free: 30.81 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 7.696e-05/0.0141, allocations: 24.11 kB / 0.6576 GB, free: 30.8 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.01424, allocations: 118.3 kB / 0.6577 GB, free: 30.73 MB / 0.5262 GB Notification: Performance of SimCode: time 1.002e-06/0.01424, allocations: 0 / 0.6577 GB, free: 30.73 MB / 0.5262 GB Notification: Performance of Templates: time 0.005485/0.01973, allocations: 2.738 MB / 0.6604 GB, free: 30.48 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.680016564205289]