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.001107/0.001107, allocations: 92.22 kB / 19.65 MB, free: 276 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.0009623/0.0009623, allocations: 169 kB / 23.02 MB, free: 1.551 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.07/1.07, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.657/1.657, allocations: 273.5 MB / 0.5209 GB, free: 14.86 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 2.474e-06/2.474e-06, allocations: 0 / 0.6469 GB, free: 38.75 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.282e-05/3.53e-05, allocations: 3.406 kB / 0.6469 GB, free: 38.74 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.002607/0.002642, allocations: 2.038 MB / 0.6489 GB, free: 37.42 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0008186/0.00346, allocations: 0.5536 MB / 0.6495 GB, free: 37.05 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.713e-05/0.003548, allocations: 0 / 0.6495 GB, free: 37.05 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.003677, allocations: 19.16 kB / 0.6495 GB, free: 37.04 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.003834, allocations: 49.25 kB / 0.6495 GB, free: 37.02 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001804/0.004014, allocations: 45.08 kB / 0.6496 GB, free: 37 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0002227/0.004237, allocations: 200.1 kB / 0.6498 GB, free: 36.94 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.004365, allocations: 30.2 kB / 0.6498 GB, free: 36.92 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.004508, allocations: 100.1 kB / 0.6499 GB, free: 36.88 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.004622, allocations: 55.81 kB / 0.65 GB, free: 36.86 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.004654, allocations: 15.91 kB / 0.65 GB, free: 36.86 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.164e-05/0.004676, allocations: 14.28 kB / 0.65 GB, free: 36.86 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.111e-05/0.004707, allocations: 33.11 kB / 0.65 GB, free: 36.84 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 6.489e-05/0.004772, allocations: 56.64 kB / 0.6501 GB, free: 36.81 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.004947, allocations: 127.7 kB / 0.6502 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.004949, allocations: 0 / 0.6502 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of FrontEnd: time 7.81e-07/0.00495, allocations: 0 / 0.6502 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.004955, allocations: 1.781 kB / 0.6502 GB, free: 36.75 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.0005782/0.005533, allocations: 0.5137 MB / 0.6507 GB, free: 36.26 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.005574, allocations: 11 kB / 0.6507 GB, free: 36.26 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.121e-05/0.005635, allocations: 26.19 kB / 0.6507 GB, free: 36.25 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.005805, allocations: 163.6 kB / 0.6509 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.00582, allocations: 10.12 kB / 0.6509 GB, free: 36.08 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.005855, allocations: 12.03 kB / 0.6509 GB, free: 36.08 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.006079, allocations: 140.6 kB / 0.651 GB, free: 35.99 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.006096, allocations: 7.547 kB / 0.651 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.006116, allocations: 10.89 kB / 0.6511 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.006127, allocations: 1.594 kB / 0.6511 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.006242, allocations: 80.94 kB / 0.6511 GB, free: 35.94 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.006807, allocations: 402.8 kB / 0.6515 GB, free: 35.61 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.006965, allocations: 120.8 kB / 0.6516 GB, free: 35.53 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.933e-05/0.007024, allocations: 58.45 kB / 0.6517 GB, free: 35.48 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.007037, allocations: 4.812 kB / 0.6517 GB, free: 35.48 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.007226, allocations: 197.5 kB / 0.6519 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 2.004e-06/0.007228, allocations: 3.938 kB / 0.6519 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0008136/0.008041, allocations: 0.5777 MB / 0.6525 GB, free: 34.9 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.008082, allocations: 144 kB / 0.6526 GB, free: 34.73 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.008183, allocations: 202.8 kB / 0.6528 GB, free: 34.56 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.0082, allocations: 32.7 kB / 0.6528 GB, free: 34.52 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.00825, allocations: 156.5 kB / 0.653 GB, free: 34.38 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.008289, allocations: 74.62 kB / 0.653 GB, free: 34.32 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.276e-05/0.008351, allocations: 57.7 kB / 0.6531 GB, free: 34.27 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.186e-05/0.008413, allocations: 0.4968 MB / 0.6536 GB, free: 33.78 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.268e-05/0.008496, allocations: 103.9 kB / 0.6537 GB, free: 33.69 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.008597, allocations: 188.8 kB / 0.6539 GB, free: 33.5 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.008813, allocations: 319.5 kB / 0.6542 GB, free: 33.21 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.008815, allocations: 3.609 kB / 0.6542 GB, free: 33.21 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002673/0.009082, allocations: 319 kB / 0.6545 GB, free: 33 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.009114, allocations: 60.06 kB / 0.6545 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.009121, allocations: 5.062 kB / 0.6545 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.009138, allocations: 7.688 kB / 0.6545 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.009305, allocations: 50.7 kB / 0.6546 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.009315, allocations: 11.34 kB / 0.6546 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.097e-05/0.009395, allocations: 12.12 kB / 0.6546 GB, free: 32.91 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.009409, allocations: 7.688 kB / 0.6546 GB, free: 32.91 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.0001639/0.009573, allocations: 233.7 kB / 0.6548 GB, free: 32.7 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.009613, allocations: 22.38 kB / 0.6549 GB, free: 32.69 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.182e-05/0.009645, allocations: 26.23 kB / 0.6549 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/0.00965, allocations: 2.25 kB / 0.6549 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.009654, allocations: 1.719 kB / 0.6549 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.00966, allocations: 4.5 kB / 0.6549 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004371/0.0101, allocations: 0.5137 MB / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.0101, allocations: 1.344 kB / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.01023, allocations: 43.72 kB / 0.6554 GB, free: 32.24 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.01024, allocations: 0 / 0.6554 GB, free: 32.24 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.01025, allocations: 3.406 kB / 0.6554 GB, free: 32.24 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.01025, allocations: 4.984 kB / 0.6554 GB, free: 32.24 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01025, allocations: 0 / 0.6554 GB, free: 32.24 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.01057, allocations: 460.1 kB / 0.6559 GB, free: 31.91 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.848e-05/0.01059, allocations: 19.78 kB / 0.6559 GB, free: 31.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.01061, allocations: 6.906 kB / 0.6559 GB, free: 31.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.265e-05/0.01069, allocations: 11.97 kB / 0.6559 GB, free: 31.89 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.01075, allocations: 24.58 kB / 0.6559 GB, free: 31.89 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.01076, allocations: 5.312 kB / 0.6559 GB, free: 31.89 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 5.849e-05/0.01082, allocations: 154 kB / 0.6561 GB, free: 31.76 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6e-08/0.01082, allocations: 2.562 kB / 0.6561 GB, free: 31.76 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002443/0.01106, allocations: 44.88 kB / 0.6561 GB, free: 31.76 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.0001115/0.01117, allocations: 109.9 kB / 0.6562 GB, free: 31.67 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003456/0.01152, allocations: 325.1 kB / 0.6566 GB, free: 31.41 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.01152, allocations: 0.5 kB / 0.6566 GB, free: 31.41 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.01167, allocations: 155 kB / 0.6567 GB, free: 31.29 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.01197, allocations: 38.27 kB / 0.6567 GB, free: 31.28 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.01352, allocations: 0.5578 MB / 0.6573 GB, free: 30.92 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.326e-05/0.01357, allocations: 81.89 kB / 0.6574 GB, free: 30.84 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 6.716e-05/0.01363, allocations: 21.08 kB / 0.6574 GB, free: 30.83 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.551e-05/0.01368, allocations: 20.5 kB / 0.6574 GB, free: 30.82 MB / 0.5262 GB Notification: Performance of SimCode: time 1.302e-06/0.01368, allocations: 0 / 0.6574 GB, free: 30.82 MB / 0.5262 GB Notification: Performance of Templates: time 0.004675/0.01836, allocations: 2.506 MB / 0.6598 GB, free: 30.61 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: 5.11295254714787]