Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral.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.0008671/0.0008671, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001188/0.002055, 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.001183/0.001183, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00197/0.003153, 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.067/1.067, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0966/1.164, allocations: 53.65 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.7232/0.7232, allocations: 291.2 MB / 0.5226 GB, free: 52.94 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03846/0.7617, allocations: 21.04 MB / 0.5432 GB, free: 31.97 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.DevModels.PKTwoCompartmentModelOral,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral") translateModel(Pharmacolibrary.DevModels.PKTwoCompartmentModelOral,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.5444 GB, free: 30.71 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.572e-05, allocations: 2.312 kB / 0.5444 GB, free: 30.71 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKTwoCompartmentModelOral): time 0.003774/0.0038, allocations: 2.516 MB / 0.5468 GB, free: 28.18 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.004904, allocations: 0.6309 MB / 0.5475 GB, free: 27.55 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.005018, allocations: 4 kB / 0.5475 GB, free: 27.54 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 6.886e-05/0.005087, allocations: 23.72 kB / 0.5475 GB, free: 27.52 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.005283, allocations: 95.25 kB / 0.5476 GB, free: 27.43 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.005456, allocations: 59.86 kB / 0.5476 GB, free: 27.37 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.005758, allocations: 314.5 kB / 0.5479 GB, free: 27.06 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.005904, allocations: 54.69 kB / 0.548 GB, free: 27.01 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.006153, allocations: 191.5 kB / 0.5482 GB, free: 26.82 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.006322, allocations: 91.77 kB / 0.5483 GB, free: 26.73 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.213e-05/0.006364, allocations: 24 kB / 0.5483 GB, free: 26.71 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.662e-05/0.0064, allocations: 24 kB / 0.5483 GB, free: 26.68 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.114e-05/0.006451, allocations: 35.88 kB / 0.5483 GB, free: 26.65 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.006552, allocations: 75.88 kB / 0.5484 GB, free: 26.57 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.006826, allocations: 167.4 kB / 0.5486 GB, free: 26.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.119e-05/0.006847, allocations: 0 / 0.5486 GB, free: 26.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.006848, allocations: 3.938 kB / 0.5486 GB, free: 26.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.398e-05/0.006872, allocations: 0 / 0.5486 GB, free: 26.41 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008294/0.007701, allocations: 0.5496 MB / 0.5491 GB, free: 25.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.007736, allocations: 15.89 kB / 0.5491 GB, free: 25.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.072e-05/0.007807, allocations: 28.92 kB / 0.5492 GB, free: 25.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.008018, allocations: 168.1 kB / 0.5493 GB, free: 25.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.008046, allocations: 12.38 kB / 0.5493 GB, free: 25.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.008082, allocations: 28.36 kB / 0.5494 GB, free: 25.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.008306, allocations: 192 kB / 0.5495 GB, free: 25.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.008322, allocations: 4.141 kB / 0.5495 GB, free: 25.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.008339, allocations: 12.12 kB / 0.5496 GB, free: 25.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.008347, allocations: 7.984 kB / 0.5496 GB, free: 25.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.008495, allocations: 139.1 kB / 0.5497 GB, free: 25.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005313/0.009026, allocations: 347.4 kB / 0.55 GB, free: 24.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.009279, allocations: 161 kB / 0.5502 GB, free: 24.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.382e-05/0.009352, allocations: 92.25 kB / 0.5503 GB, free: 24.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.009365, allocations: 4 kB / 0.5503 GB, free: 24.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.009596, allocations: 318.4 kB / 0.5506 GB, free: 24.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 1.804e-06/0.009598, allocations: 0 / 0.5506 GB, free: 24.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.001001/0.0106, allocations: 0.7709 MB / 0.5513 GB, free: 23.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.01071, allocations: 225.5 kB / 0.5515 GB, free: 23.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.657e-05/0.01079, allocations: 165.2 kB / 0.5517 GB, free: 22.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.01081, allocations: 33.7 kB / 0.5517 GB, free: 22.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.041e-05/0.01085, allocations: 124.9 kB / 0.5519 GB, free: 22.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.732e-05/0.0109, allocations: 99.17 kB / 0.5519 GB, free: 22.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.714e-05/0.01096, allocations: 69.62 kB / 0.552 GB, free: 22.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.67e-05/0.011, allocations: 338.7 kB / 0.5523 GB, free: 22.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.124e-05/0.01107, allocations: 138.9 kB / 0.5525 GB, free: 22.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.639e-05/0.01116, allocations: 207.2 kB / 0.5527 GB, free: 21.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.0113, allocations: 304.7 kB / 0.553 GB, free: 21.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.0113, allocations: 0 / 0.553 GB, free: 21.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0001958/0.0115, allocations: 357.7 kB / 0.5533 GB, free: 21.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/0.01155, allocations: 89.09 kB / 0.5534 GB, free: 20.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.01156, allocations: 4 kB / 0.5534 GB, free: 20.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.667e-06/0.01157, allocations: 8.219 kB / 0.5534 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.01177, allocations: 95 kB / 0.5535 GB, free: 20.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.01177, allocations: 4 kB / 0.5535 GB, free: 20.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.61e-05/0.01186, allocations: 15.98 kB / 0.5535 GB, free: 20.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.01187, allocations: 15.94 kB / 0.5535 GB, free: 20.79 MB / 410.7 MB Warning: Assuming fixed start value for the following 1 variables: periodicDose1.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: 8 * Number of states: 0 () * Number of discrete variables: 21 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,peripheral.Cmin,$PRE.peripheral.Cmin,peripheral.Cmax,$PRE.peripheral.Cmax,periodicDose1.pulse.count,$PRE.periodicDose1.pulse.count,periodicDose1.pulse.T_start,$PRE.periodicDose1.pulse.T_start,peripheral.rising,$PRE.peripheral.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 (42): * Single equations (assignments): 39 * 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.0001245/0.01199, allocations: 203.1 kB / 0.5537 GB, free: 20.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.01202, allocations: 31.97 kB / 0.5537 GB, free: 20.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.24e-05/0.01205, allocations: 22.66 kB / 0.5538 GB, free: 20.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.01205, allocations: 0 / 0.5538 GB, free: 20.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.01206, allocations: 4 kB / 0.5538 GB, free: 20.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.01206, allocations: 3.984 kB / 0.5538 GB, free: 20.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003288/0.01239, allocations: 497.7 kB / 0.5542 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.01239, allocations: 0 / 0.5542 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.01255, allocations: 64.61 kB / 0.5543 GB, free: 19.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.811e-05/0.01256, allocations: 15.91 kB / 0.5543 GB, free: 19.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.01257, allocations: 3.984 kB / 0.5543 GB, free: 19.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.01258, allocations: 11.98 kB / 0.5543 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.01259, allocations: 4 kB / 0.5543 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.01259, allocations: 0 / 0.5543 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.01286, allocations: 0.5172 MB / 0.5548 GB, free: 19.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.01289, allocations: 11.44 kB / 0.5549 GB, free: 19.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.255e-05/0.01296, allocations: 12 kB / 0.5549 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.867e-05/0.01302, allocations: 27.94 kB / 0.5549 GB, free: 19.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.01303, allocations: 16 kB / 0.5549 GB, free: 19.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.207e-05/0.01306, allocations: 41.03 kB / 0.555 GB, free: 19.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01306, allocations: 0 / 0.555 GB, free: 19.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002009/0.01327, allocations: 75.94 kB / 0.555 GB, free: 19.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (central.C,central.AUC,peripheral.C,peripheral.AUC,periodicDose1.TotalCumulativeMass) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,central.Cmax,central.Cmin,central.rising,peripheral.Cmax,peripheral.Cmin,peripheral.rising,periodicDose1.pulse.T_start,periodicDose1.pulse.count) * Number of discrete states: 11 (periodicDose1.pulse.count,peripheral.Cmin,$whenCondition3,peripheral.Cmax,$whenCondition2,peripheral.rising,central.Cmin,$whenCondition5,central.Cmax,$whenCondition4,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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 9.767e-05/0.01336, allocations: 99.86 kB / 0.5551 GB, free: 19.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002392/0.0136, allocations: 459.2 kB / 0.5556 GB, free: 18.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.01361, allocations: 8.062 kB / 0.5556 GB, free: 18.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.01371, allocations: 258.9 kB / 0.5558 GB, free: 18.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.01392, allocations: 79.95 kB / 0.5559 GB, free: 18.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005347/0.01927, allocations: 0.6245 MB / 0.5565 GB, free: 17.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.878e-05/0.0193, allocations: 80.33 kB / 0.5566 GB, free: 17.37 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.732e-05/0.01939, allocations: 25.94 kB / 0.5566 GB, free: 17.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.01953, allocations: 119.3 kB / 0.5567 GB, free: 17.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.01953, allocations: 0 / 0.5567 GB, free: 17.23 MB / 410.7 MB Notification: Performance of Templates: time 0.261/0.2805, allocations: 3.954 MB / 0.5606 GB, free: 84.86 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModelOral.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.9779493510723114]