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.001324/0.001324, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001461/0.001461, allocations: 173.3 kB / 23.49 MB, free: 1.062 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.9862/0.9862, allocations: 177.1 MB / 203.8 MB, free: 5.648 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.71/1.71, allocations: 273.5 MB / 0.5213 GB, free: 14.81 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.204e-06/2.204e-06, allocations: 0 / 0.647 GB, free: 38.75 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.639e-05/2.859e-05, allocations: 4.812 kB / 0.647 GB, free: 38.74 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.003612/0.003641, allocations: 2.034 MB / 0.6489 GB, free: 37.41 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0008518/0.004492, allocations: 0.5441 MB / 0.6495 GB, free: 37.05 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.296e-05/0.004585, allocations: 5.656 kB / 0.6495 GB, free: 37.05 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.004706, allocations: 19.67 kB / 0.6495 GB, free: 37.04 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.004856, allocations: 47.92 kB / 0.6495 GB, free: 37.02 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.005038, allocations: 47.19 kB / 0.6496 GB, free: 37 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.005279, allocations: 198.6 kB / 0.6498 GB, free: 36.94 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.005404, allocations: 26.5 kB / 0.6498 GB, free: 36.91 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.005559, allocations: 105.1 kB / 0.6499 GB, free: 36.87 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.005675, allocations: 60.5 kB / 0.65 GB, free: 36.85 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.005706, allocations: 13.22 kB / 0.65 GB, free: 36.85 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.23e-05/0.005728, allocations: 15.56 kB / 0.65 GB, free: 36.85 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.384e-05/0.005762, allocations: 30.58 kB / 0.65 GB, free: 36.84 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 6.784e-05/0.00583, allocations: 56.77 kB / 0.6501 GB, free: 36.81 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.006, allocations: 123.3 kB / 0.6502 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.006003, allocations: 0 / 0.6502 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.006005, allocations: 1.188 kB / 0.6502 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.006011, allocations: 0 / 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.0005629/0.006574, allocations: 0.5134 MB / 0.6507 GB, free: 36.26 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.006612, allocations: 10.03 kB / 0.6507 GB, free: 36.26 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.006686, allocations: 28.5 kB / 0.6507 GB, free: 36.25 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.006843, allocations: 168.2 kB / 0.6509 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.006858, allocations: 9.031 kB / 0.6509 GB, free: 36.08 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.00689, allocations: 13.69 kB / 0.6509 GB, free: 36.08 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.007095, allocations: 142.5 kB / 0.651 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.007108, allocations: 7.453 kB / 0.6511 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.007122, allocations: 7.938 kB / 0.6511 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.007131, allocations: 1.438 kB / 0.6511 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.007238, allocations: 81.5 kB / 0.6511 GB, free: 35.94 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004762/0.007715, allocations: 402.2 kB / 0.6515 GB, free: 35.61 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.007876, allocations: 119.5 kB / 0.6516 GB, free: 35.53 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.935e-05/0.007935, allocations: 69.06 kB / 0.6517 GB, free: 35.47 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.007946, allocations: 3.031 kB / 0.6517 GB, free: 35.47 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.008126, allocations: 199.1 kB / 0.6519 GB, free: 35.31 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.973e-06/0.008128, allocations: 0 / 0.6519 GB, free: 35.31 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0007741/0.008902, allocations: 0.5735 MB / 0.6525 GB, free: 34.89 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.008943, allocations: 139.2 kB / 0.6526 GB, free: 34.73 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.88e-05/0.009042, allocations: 200.8 kB / 0.6528 GB, free: 34.56 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.009058, allocations: 35.75 kB / 0.6528 GB, free: 34.52 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.009108, allocations: 157.5 kB / 0.653 GB, free: 34.38 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.769e-05/0.009145, allocations: 66.52 kB / 0.653 GB, free: 34.32 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.796e-05/0.009203, allocations: 61.19 kB / 0.6531 GB, free: 34.28 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.378e-05/0.009257, allocations: 0.497 MB / 0.6536 GB, free: 33.78 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.362e-05/0.009341, allocations: 101.3 kB / 0.6537 GB, free: 33.7 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.009441, allocations: 199.8 kB / 0.6539 GB, free: 33.49 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.009659, allocations: 318.6 kB / 0.6542 GB, free: 33.21 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.009662, allocations: 6.562 kB / 0.6542 GB, free: 33.21 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002706/0.009933, allocations: 313.4 kB / 0.6545 GB, free: 32.99 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.009965, allocations: 64.11 kB / 0.6545 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.009971, allocations: 3.938 kB / 0.6545 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.009988, allocations: 2.156 kB / 0.6545 GB, free: 32.93 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.01014, allocations: 54.67 kB / 0.6546 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.01015, allocations: 11.5 kB / 0.6546 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.082e-05/0.01023, allocations: 15.03 kB / 0.6546 GB, free: 32.91 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.01024, allocations: 7.562 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.000161/0.01041, allocations: 226 kB / 0.6548 GB, free: 32.7 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.01044, allocations: 27.14 kB / 0.6549 GB, free: 32.7 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.153e-05/0.01047, allocations: 17.28 kB / 0.6549 GB, free: 32.68 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01047, allocations: 4.969 kB / 0.6549 GB, free: 32.68 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.01047, allocations: 3.938 kB / 0.6549 GB, free: 32.68 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.01048, allocations: 3.938 kB / 0.6549 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003854/0.01087, allocations: 0.5162 MB / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01087, allocations: 1.312 kB / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.01099, allocations: 36.84 kB / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.011, allocations: 0 / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.01101, allocations: 5 kB / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.01101, allocations: 0 / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.01101, allocations: 3.703 kB / 0.6554 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/0.01133, allocations: 462.6 kB / 0.6559 GB, free: 31.92 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.932e-05/0.01135, allocations: 21.41 kB / 0.6559 GB, free: 31.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.822e-05/0.01138, allocations: 10.81 kB / 0.6559 GB, free: 31.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.759e-05/0.01146, allocations: 8.188 kB / 0.6559 GB, free: 31.9 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.277e-05/0.01152, allocations: 24.25 kB / 0.6559 GB, free: 31.89 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.01153, allocations: 7.125 kB / 0.656 GB, free: 31.89 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 5.532e-05/0.01159, allocations: 154 kB / 0.6561 GB, free: 31.77 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6e-08/0.01159, allocations: 0.5625 kB / 0.6561 GB, free: 31.77 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002329/0.01182, allocations: 44.41 kB / 0.6561 GB, free: 31.77 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.0001024/0.01192, allocations: 111.3 kB / 0.6562 GB, free: 31.67 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.000251/0.01217, allocations: 319.1 kB / 0.6566 GB, free: 31.41 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.01218, allocations: 0 / 0.6566 GB, free: 31.41 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 9.507e-05/0.01227, allocations: 162.9 kB / 0.6567 GB, free: 31.3 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.01255, allocations: 46.2 kB / 0.6568 GB, free: 31.28 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.01389, allocations: 0.5646 MB / 0.6573 GB, free: 30.92 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.827e-05/0.01393, allocations: 81.92 kB / 0.6574 GB, free: 30.84 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 6.564e-05/0.014, allocations: 13.95 kB / 0.6574 GB, free: 30.84 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.615e-05/0.01406, allocations: 22.38 kB / 0.6574 GB, free: 30.83 MB / 0.5262 GB Notification: Performance of SimCode: time 8.51e-07/0.01406, allocations: 0.5625 kB / 0.6574 GB, free: 30.83 MB / 0.5262 GB Notification: Performance of Templates: time 0.004671/0.01873, allocations: 2.504 MB / 0.6599 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.010348559822887]