Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.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.001032/0.001032, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001352/0.002384, 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.0007437/0.0007437, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009174/0.001661, 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.006/1.006, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.107/1.113, 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.797/0.797, allocations: 291.2 MB / 0.5226 GB, free: 52.93 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03784/0.8348, allocations: 21.04 MB / 0.5431 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.PK_Lithium.PK_1C_Lithium,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium") translateModel(Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 0.5445 GB, free: 30.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.277e-05/1.418e-05, allocations: 2.312 kB / 0.5445 GB, free: 30.58 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium): time 0.002559/0.002573, allocations: 3.276 MB / 0.5477 GB, free: 27.29 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008687/0.003442, allocations: 0.7439 MB / 0.5484 GB, free: 26.55 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.003542, allocations: 0 / 0.5484 GB, free: 26.55 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.272e-05/0.003615, allocations: 43.52 kB / 0.5485 GB, free: 26.5 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.003772, allocations: 127 kB / 0.5486 GB, free: 26.38 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.003914, allocations: 83.84 kB / 0.5487 GB, free: 26.3 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.004183, allocations: 441.8 kB / 0.5491 GB, free: 25.86 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.004306, allocations: 63.58 kB / 0.5492 GB, free: 25.8 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.004516, allocations: 261.5 kB / 0.5494 GB, free: 25.55 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.004689, allocations: 127.7 kB / 0.5495 GB, free: 25.42 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.004722, allocations: 32 kB / 0.5496 GB, free: 25.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.01e-05/0.004752, allocations: 32 kB / 0.5496 GB, free: 25.36 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.29e-05/0.004785, allocations: 47.81 kB / 0.5496 GB, free: 25.31 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.503e-05/0.00486, allocations: 103.8 kB / 0.5497 GB, free: 25.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.005062, allocations: 223.2 kB / 0.5499 GB, free: 24.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.422e-05/0.005076, allocations: 4 kB / 0.5499 GB, free: 24.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.005077, allocations: 0 / 0.5499 GB, free: 24.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.005094, allocations: 0 / 0.5499 GB, free: 24.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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006652/0.005759, allocations: 0.6357 MB / 0.5506 GB, free: 24.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.005791, allocations: 11.89 kB / 0.5506 GB, free: 24.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.005843, allocations: 44.89 kB / 0.5506 GB, free: 24.26 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.006034, allocations: 193.5 kB / 0.5508 GB, free: 24.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.006053, allocations: 20.88 kB / 0.5508 GB, free: 24.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/0.006083, allocations: 28.31 kB / 0.5509 GB, free: 24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.006294, allocations: 242.5 kB / 0.5511 GB, free: 23.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.006309, allocations: 3.984 kB / 0.5511 GB, free: 23.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.006326, allocations: 12 kB / 0.5511 GB, free: 23.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.006333, allocations: 4 kB / 0.5511 GB, free: 23.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.00645, allocations: 141.6 kB / 0.5512 GB, free: 23.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.006949, allocations: 480.7 kB / 0.5517 GB, free: 23.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.007163, allocations: 182.8 kB / 0.5519 GB, free: 22.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.41e-05/0.007217, allocations: 100.5 kB / 0.552 GB, free: 22.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.007229, allocations: 11.94 kB / 0.552 GB, free: 22.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.007411, allocations: 315.4 kB / 0.5523 GB, free: 22.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 1.914e-06/0.007412, allocations: 0 / 0.5523 GB, free: 22.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007575/0.00817, allocations: 0.8305 MB / 0.5531 GB, free: 21.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.008222, allocations: 221.6 kB / 0.5533 GB, free: 21.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.008334, allocations: 225 kB / 0.5535 GB, free: 20.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.008353, allocations: 37.7 kB / 0.5536 GB, free: 20.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.083e-05/0.008414, allocations: 137.3 kB / 0.5537 GB, free: 20.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.671e-05/0.008471, allocations: 119 kB / 0.5538 GB, free: 20.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.207e-05/0.008533, allocations: 70.16 kB / 0.5539 GB, free: 20.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.676e-05/0.008579, allocations: 342.8 kB / 0.5542 GB, free: 20.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.213e-05/0.008651, allocations: 155.9 kB / 0.5543 GB, free: 20.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.692e-05/0.008748, allocations: 262.8 kB / 0.5546 GB, free: 19.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.00892, allocations: 334.3 kB / 0.5549 GB, free: 19.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.008922, allocations: 3.938 kB / 0.5549 GB, free: 19.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000224/0.009146, allocations: 388.5 kB / 0.5553 GB, free: 18.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.009187, allocations: 89.09 kB / 0.5554 GB, free: 18.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.009194, allocations: 8.344 kB / 0.5554 GB, free: 18.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.009207, allocations: 7.938 kB / 0.5554 GB, free: 18.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.009426, allocations: 107.9 kB / 0.5555 GB, free: 18.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.009432, allocations: 8 kB / 0.5555 GB, free: 18.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.539e-05/0.009528, allocations: 19.31 kB / 0.5555 GB, free: 18.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.009544, allocations: 19.98 kB / 0.5555 GB, free: 18.68 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: 12 * 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 (50): * Single equations (assignments): 47 * 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.0001344/0.009678, allocations: 219.6 kB / 0.5557 GB, free: 18.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.009707, allocations: 35.97 kB / 0.5558 GB, free: 18.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.514e-05/0.009742, allocations: 30.95 kB / 0.5558 GB, free: 18.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.009745, allocations: 4 kB / 0.5558 GB, free: 18.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.009748, allocations: 0 / 0.5558 GB, free: 18.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.009754, allocations: 0 / 0.5558 GB, free: 18.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003876/0.01014, allocations: 0.5447 MB / 0.5563 GB, free: 17.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01014, allocations: 0 / 0.5563 GB, free: 17.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.01032, allocations: 75.88 kB / 0.5564 GB, free: 17.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.691e-05/0.01038, allocations: 35.81 kB / 0.5564 GB, free: 17.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.01039, allocations: 0 / 0.5564 GB, free: 17.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.0104, allocations: 11.98 kB / 0.5565 GB, free: 17.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.0104, allocations: 1.688 kB / 0.5565 GB, free: 17.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.01041, allocations: 7.938 kB / 0.5565 GB, free: 17.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.01068, allocations: 0.5271 MB / 0.557 GB, free: 17.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.01071, allocations: 12 kB / 0.557 GB, free: 17.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.531e-05/0.0108, allocations: 23.98 kB / 0.557 GB, free: 17.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.947e-05/0.01086, allocations: 23.95 kB / 0.557 GB, free: 17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.01087, allocations: 15.92 kB / 0.5571 GB, free: 16.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.884e-05/0.01092, allocations: 82.66 kB / 0.5571 GB, free: 16.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01092, allocations: 0 / 0.5571 GB, free: 16.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001906/0.01111, allocations: 88 kB / 0.5572 GB, free: 16.82 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 (29): * Single equations (assignments): 25 * 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 7.952e-05/0.01119, allocations: 92.41 kB / 0.5573 GB, free: 16.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002387/0.01143, allocations: 0.4883 MB / 0.5578 GB, free: 16.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/0.01144, allocations: 4 kB / 0.5578 GB, free: 16.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.01155, allocations: 270.7 kB / 0.558 GB, free: 15.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.01183, allocations: 131.7 kB / 0.5582 GB, free: 15.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007408/0.01924, allocations: 0.7888 MB / 0.5589 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.319e-05/0.01928, allocations: 93.12 kB / 0.559 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.01939, allocations: 30.97 kB / 0.5591 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.01956, allocations: 153.3 kB / 0.5592 GB, free: 14.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.01957, allocations: 0 / 0.5592 GB, free: 14.62 MB / 410.7 MB Notification: Performance of Templates: time 0.2998/0.3193, allocations: 5.565 MB / 0.5646 GB, free: 83.96 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.13189462851733]