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.0009585/0.0009585, allocations: 93.06 kB / 19.65 MB, free: 280 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.001525/0.001525, allocations: 173 kB / 23.03 MB, free: 1.547 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.032/1.032, allocations: 177.1 MB / 203.4 MB, free: 5.641 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.631/1.631, allocations: 273.5 MB / 0.5209 GB, free: 14.83 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.723e-06/1.723e-06, allocations: 0.625 kB / 0.6469 GB, free: 38.8 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.591e-05, allocations: 2.312 kB / 0.6469 GB, free: 38.8 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.003441/0.003467, allocations: 2.043 MB / 0.6489 GB, free: 37.47 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.004589, allocations: 0.5432 MB / 0.6495 GB, free: 37.12 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.00471, allocations: 3.625 kB / 0.6495 GB, free: 37.12 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.004858, allocations: 22.8 kB / 0.6495 GB, free: 37.1 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.005076, allocations: 50.16 kB / 0.6495 GB, free: 37.08 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.005313, allocations: 44.17 kB / 0.6496 GB, free: 37.05 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003522/0.005665, allocations: 193 kB / 0.6498 GB, free: 37 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.005825, allocations: 32.09 kB / 0.6498 GB, free: 36.98 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.006069, allocations: 103.7 kB / 0.6499 GB, free: 36.93 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.00625, allocations: 57.55 kB / 0.65 GB, free: 36.92 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 4.005e-05/0.00629, allocations: 15.91 kB / 0.65 GB, free: 36.92 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.892e-05/0.006329, allocations: 15.59 kB / 0.65 GB, free: 36.92 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 4.35e-05/0.006373, allocations: 32.25 kB / 0.65 GB, free: 36.89 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.006473, allocations: 54.81 kB / 0.6501 GB, free: 36.87 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.006779, allocations: 124.6 kB / 0.6502 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.006786, allocations: 1.25 kB / 0.6502 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of FrontEnd: time 2.385e-06/0.006788, allocations: 0 / 0.6502 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.006799, allocations: 0 / 0.6502 GB, free: 36.8 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.001077/0.007876, allocations: 0.514 MB / 0.6507 GB, free: 36.32 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 6.778e-05/0.007944, allocations: 8.094 kB / 0.6507 GB, free: 36.32 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.008057, allocations: 36.64 kB / 0.6507 GB, free: 36.31 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.008303, allocations: 158.2 kB / 0.6509 GB, free: 36.15 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.008336, allocations: 9.312 kB / 0.6509 GB, free: 36.14 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.09e-05/0.008377, allocations: 14.03 kB / 0.6509 GB, free: 36.14 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.008647, allocations: 140.2 kB / 0.651 GB, free: 36.05 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.008664, allocations: 6.125 kB / 0.651 GB, free: 36.05 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.008683, allocations: 6.062 kB / 0.6511 GB, free: 36.04 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.008693, allocations: 2.656 kB / 0.6511 GB, free: 36.04 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.008837, allocations: 86.56 kB / 0.6511 GB, free: 36 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006274/0.009465, allocations: 401.7 kB / 0.6515 GB, free: 35.67 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.009673, allocations: 118.3 kB / 0.6516 GB, free: 35.59 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.869e-05/0.009752, allocations: 68.8 kB / 0.6517 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.009763, allocations: 3.719 kB / 0.6517 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/0.009994, allocations: 203.7 kB / 0.6519 GB, free: 35.37 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 3.947e-06/0.009998, allocations: 1.312 kB / 0.6519 GB, free: 35.37 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.001054/0.01105, allocations: 0.5711 MB / 0.6525 GB, free: 34.95 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.01111, allocations: 142.6 kB / 0.6526 GB, free: 34.79 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.01125, allocations: 203.6 kB / 0.6528 GB, free: 34.62 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.01127, allocations: 29.7 kB / 0.6528 GB, free: 34.58 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.01134, allocations: 157.6 kB / 0.653 GB, free: 34.43 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 4.944e-05/0.01139, allocations: 71.5 kB / 0.653 GB, free: 34.38 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.568e-05/0.01146, allocations: 52.38 kB / 0.6531 GB, free: 34.34 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 7.611e-05/0.01154, allocations: 0.5045 MB / 0.6536 GB, free: 33.84 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.01164, allocations: 100.7 kB / 0.6537 GB, free: 33.75 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.01177, allocations: 192.6 kB / 0.6539 GB, free: 33.55 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.01205, allocations: 321 kB / 0.6542 GB, free: 33.27 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.01206, allocations: 0 / 0.6542 GB, free: 33.27 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003735/0.01243, allocations: 316.5 kB / 0.6545 GB, free: 33.06 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 5.384e-05/0.01249, allocations: 59.66 kB / 0.6545 GB, free: 33 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.01249, allocations: 2.25 kB / 0.6545 GB, free: 33 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.01252, allocations: 2.812 kB / 0.6545 GB, free: 33 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002477/0.01276, allocations: 55.28 kB / 0.6546 GB, free: 32.99 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.01278, allocations: 10.22 kB / 0.6546 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.0129, allocations: 13.28 kB / 0.6546 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.01292, allocations: 8.062 kB / 0.6546 GB, free: 32.98 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.0003193/0.01324, allocations: 240 kB / 0.6548 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.607e-05/0.0133, allocations: 21.84 kB / 0.6549 GB, free: 32.75 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.729e-05/0.01334, allocations: 28.7 kB / 0.6549 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.01335, allocations: 1.625 kB / 0.6549 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.01335, allocations: 1.625 kB / 0.6549 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.01336, allocations: 3.938 kB / 0.6549 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.01386, allocations: 0.5155 MB / 0.6554 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.01387, allocations: 1.719 kB / 0.6554 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.01404, allocations: 42.66 kB / 0.6554 GB, free: 32.3 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/0.01404, allocations: 1.125 kB / 0.6554 GB, free: 32.3 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.01406, allocations: 6.281 kB / 0.6554 GB, free: 32.3 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.01407, allocations: 3.938 kB / 0.6554 GB, free: 32.3 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.01407, allocations: 0 / 0.6554 GB, free: 32.3 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.01446, allocations: 454.4 kB / 0.6559 GB, free: 31.97 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.01449, allocations: 23.11 kB / 0.6559 GB, free: 31.96 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.01452, allocations: 6.969 kB / 0.6559 GB, free: 31.96 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.078e-05/0.01461, allocations: 7.312 kB / 0.6559 GB, free: 31.95 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/0.01468, allocations: 20.84 kB / 0.6559 GB, free: 31.95 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.0147, allocations: 10.22 kB / 0.6559 GB, free: 31.95 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 7.221e-05/0.01477, allocations: 150.4 kB / 0.6561 GB, free: 31.82 MB / 0.5262 GB Notification: Performance of sort global known variables: time 5e-08/0.01477, allocations: 0 / 0.6561 GB, free: 31.82 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002694/0.01504, allocations: 44.53 kB / 0.6561 GB, free: 31.82 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.0001296/0.01517, allocations: 116.9 kB / 0.6562 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.000345/0.01552, allocations: 325.9 kB / 0.6566 GB, free: 31.46 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01552, allocations: 0.5625 kB / 0.6566 GB, free: 31.46 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.01564, allocations: 149.9 kB / 0.6567 GB, free: 31.35 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.01593, allocations: 39.83 kB / 0.6567 GB, free: 31.34 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.01731, allocations: 0.5647 MB / 0.6573 GB, free: 30.98 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.018e-05/0.01735, allocations: 80.89 kB / 0.6574 GB, free: 30.9 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 5.972e-05/0.01741, allocations: 15.12 kB / 0.6574 GB, free: 30.89 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.01746, allocations: 22.41 kB / 0.6574 GB, free: 30.88 MB / 0.5262 GB Notification: Performance of SimCode: time 8.11e-07/0.01746, allocations: 0 / 0.6574 GB, free: 30.88 MB / 0.5262 GB Notification: Performance of Templates: time 0.004641/0.0221, allocations: 2.624 MB / 0.66 GB, free: 30.68 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.9430270520970225]