Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.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.0008524/0.0008524, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000876/0.001728, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001031/0.001031, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001294/0.002326, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.074/1.074, allocations: 177.1 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1203/1.194, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 0.9252/0.9252, allocations: 291.2 MB / 0.5226 GB, free: 52.93 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.051/0.9762, allocations: 21.04 MB / 0.5432 GB, free: 31.96 MB / 410.7 MB " [Timeout remaining time 179] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.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.Examples.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") translateModel(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.216e-06/3.216e-06, allocations: 0 / 0.5444 GB, free: 30.68 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.07e-05/3.391e-05, allocations: 6.25 kB / 0.5444 GB, free: 30.67 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic): time 0.004598/0.004632, allocations: 2.684 MB / 0.547 GB, free: 27.98 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.006262, allocations: 0.6621 MB / 0.5477 GB, free: 27.31 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.006539, allocations: 0 / 0.5477 GB, free: 27.31 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.006672, allocations: 31.66 kB / 0.5477 GB, free: 27.28 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.006969, allocations: 103.2 kB / 0.5478 GB, free: 27.18 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.007238, allocations: 79.78 kB / 0.5479 GB, free: 27.1 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005489/0.007787, allocations: 362.4 kB / 0.5482 GB, free: 26.74 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.007999, allocations: 55.02 kB / 0.5483 GB, free: 26.69 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004711/0.00847, allocations: 224.4 kB / 0.5485 GB, free: 26.47 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.008725, allocations: 103.8 kB / 0.5486 GB, free: 26.37 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.906e-05/0.008784, allocations: 28 kB / 0.5486 GB, free: 26.34 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.076e-05/0.008835, allocations: 32 kB / 0.5487 GB, free: 26.31 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.522e-05/0.00889, allocations: 43.81 kB / 0.5487 GB, free: 26.27 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.00902, allocations: 83.88 kB / 0.5488 GB, free: 26.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.009364, allocations: 191.4 kB / 0.549 GB, free: 26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-05/0.009392, allocations: 0 / 0.549 GB, free: 26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.009393, allocations: 4 kB / 0.549 GB, free: 25.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.594e-05/0.009429, allocations: 0 / 0.549 GB, free: 25.99 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001085/0.01051, allocations: 0.5678 MB / 0.5495 GB, free: 25.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.01056, allocations: 15.89 kB / 0.5495 GB, free: 25.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.215e-05/0.01065, allocations: 32.91 kB / 0.5496 GB, free: 25.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.01097, allocations: 178.1 kB / 0.5497 GB, free: 25.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.011, allocations: 16.31 kB / 0.5498 GB, free: 25.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.01105, allocations: 24.38 kB / 0.5498 GB, free: 25.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.01137, allocations: 198.6 kB / 0.55 GB, free: 24.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.0114, allocations: 4.188 kB / 0.55 GB, free: 24.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.01142, allocations: 12.36 kB / 0.55 GB, free: 24.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.01143, allocations: 7.938 kB / 0.55 GB, free: 24.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.01163, allocations: 136.7 kB / 0.5501 GB, free: 24.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007473/0.01237, allocations: 371.4 kB / 0.5505 GB, free: 24.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.01267, allocations: 189 kB / 0.5507 GB, free: 24.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.585e-05/0.01273, allocations: 100.5 kB / 0.5507 GB, free: 24.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.01275, allocations: 4 kB / 0.5508 GB, free: 24.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.01299, allocations: 326.5 kB / 0.5511 GB, free: 23.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.956e-06/0.01299, allocations: 0 / 0.5511 GB, free: 23.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008733/0.01386, allocations: 0.8058 MB / 0.5518 GB, free: 22.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.01392, allocations: 225.5 kB / 0.5521 GB, free: 22.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.414e-05/0.01401, allocations: 175 kB / 0.5522 GB, free: 22.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.01403, allocations: 41.7 kB / 0.5523 GB, free: 22.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.328e-05/0.01408, allocations: 120.9 kB / 0.5524 GB, free: 22.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.546e-05/0.01414, allocations: 119 kB / 0.5525 GB, free: 22.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.01421, allocations: 65.66 kB / 0.5526 GB, free: 21.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.675e-05/0.01427, allocations: 342.7 kB / 0.5529 GB, free: 21.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.941e-05/0.01435, allocations: 147.4 kB / 0.553 GB, free: 21.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.808e-05/0.01445, allocations: 237.2 kB / 0.5533 GB, free: 21.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.01461, allocations: 317.8 kB / 0.5536 GB, free: 20.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.01461, allocations: 0 / 0.5536 GB, free: 20.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0002507/0.01487, allocations: 376 kB / 0.5539 GB, free: 20.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.843e-05/0.01492, allocations: 93.09 kB / 0.554 GB, free: 20.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.01493, allocations: 0 / 0.554 GB, free: 20.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.01495, allocations: 7.938 kB / 0.554 GB, free: 20.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.01519, allocations: 106 kB / 0.5541 GB, free: 20.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.0152, allocations: 7.938 kB / 0.5541 GB, free: 20.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.945e-05/0.0153, allocations: 19.98 kB / 0.5541 GB, free: 20.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.01531, allocations: 12 kB / 0.5542 GB, free: 20.11 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.route.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 21 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.route.absorptionLumen.Cmin,$PRE.periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.Cmax,$PRE.periodicDose.route.absorptionLumen.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,periodicDose.route.absorptionLumen.rising,$PRE.periodicDose.route.absorptionLumen.rising,central.rising,$PRE.central.rising,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 3 * 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.0001652/0.01548, allocations: 215.7 kB / 0.5544 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/0.01551, allocations: 23.98 kB / 0.5544 GB, free: 19.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.332e-05/0.01556, allocations: 38.58 kB / 0.5544 GB, free: 19.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.01556, allocations: 4 kB / 0.5544 GB, free: 19.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.01556, allocations: 0 / 0.5544 GB, free: 19.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.01557, allocations: 0 / 0.5544 GB, free: 19.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004126/0.01598, allocations: 0.5272 MB / 0.5549 GB, free: 19.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.01599, allocations: 0 / 0.5549 GB, free: 19.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.0162, allocations: 75.81 kB / 0.555 GB, free: 19.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.341e-05/0.01626, allocations: 31.16 kB / 0.555 GB, free: 19.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.01627, allocations: 0 / 0.555 GB, free: 19.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.0163, allocations: 16 kB / 0.5551 GB, free: 19.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.0163, allocations: 4 kB / 0.5551 GB, free: 19.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.0163, allocations: 0 / 0.5551 GB, free: 19.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.01662, allocations: 0.5341 MB / 0.5556 GB, free: 18.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.01666, allocations: 12 kB / 0.5556 GB, free: 18.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.055e-05/0.01675, allocations: 15.98 kB / 0.5556 GB, free: 18.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.159e-05/0.01681, allocations: 23.95 kB / 0.5556 GB, free: 18.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.01682, allocations: 11.98 kB / 0.5556 GB, free: 18.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.715e-05/0.01687, allocations: 52.75 kB / 0.5557 GB, free: 18.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01687, allocations: 4 kB / 0.5557 GB, free: 18.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002162/0.01709, allocations: 76 kB / 0.5558 GB, free: 18.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.route.variableDose.TotalCumulativeMass,periodicDose.route.absorptionLumen.C,periodicDose.route.absorptionLumen.AUC) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,central.Cmax,central.Cmin,central.rising,periodicDose.route.absorptionLumen.Cmax,periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 11 (periodicDose.pulse.count,central.Cmin,$whenCondition5,central.Cmax,$whenCondition4,central.rising,periodicDose.route.absorptionLumen.Cmin,$whenCondition3,periodicDose.route.absorptionLumen.Cmax,$whenCondition2,periodicDose.route.absorptionLumen.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * 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.0001133/0.0172, allocations: 101 kB / 0.5559 GB, free: 18.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002642/0.01746, allocations: 477.1 kB / 0.5563 GB, free: 17.69 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/0.01748, allocations: 4 kB / 0.5563 GB, free: 17.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.0176, allocations: 267.2 kB / 0.5566 GB, free: 17.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.01787, allocations: 109.6 kB / 0.5567 GB, free: 17.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006241/0.02411, allocations: 0.6832 MB / 0.5573 GB, free: 16.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.065e-05/0.02418, allocations: 92.81 kB / 0.5574 GB, free: 16.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001642/0.02435, allocations: 26.28 kB / 0.5575 GB, free: 16.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.02456, allocations: 139.2 kB / 0.5576 GB, free: 16.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/0.02456, allocations: 0 / 0.5576 GB, free: 16.29 MB / 410.7 MB Notification: Performance of Templates: time 0.3584/0.383, allocations: 4.482 MB / 0.562 GB, free: 85 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.707826497033238]