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.0008923/0.0008923, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001335/0.002227, allocations: 440 kB / 10.41 MB, free: 284 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.0009883/0.0009883, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001282/0.00227, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.7 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.103/1.109, allocations: 53.68 MB / 243.4 MB, free: 15.5 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.7958/0.7958, allocations: 291.2 MB / 0.5228 GB, free: 52.68 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02998/0.8257, allocations: 21.05 MB / 0.5434 GB, free: 31.68 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 8.41e-07/8.41e-07, allocations: 0 / 0.5447 GB, free: 30.39 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.609e-05/1.693e-05, allocations: 2.312 kB / 0.5447 GB, free: 30.39 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKTwoCompartmentModelOral): time 0.002271/0.002288, allocations: 2.51 MB / 0.5471 GB, free: 27.87 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006094/0.002897, allocations: 0.631 MB / 0.5477 GB, free: 27.23 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.194e-05/0.002949, allocations: 4 kB / 0.5477 GB, free: 27.23 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.401e-05/0.002983, allocations: 27.7 kB / 0.5478 GB, free: 27.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.003087, allocations: 87.27 kB / 0.5478 GB, free: 27.11 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.874e-05/0.003165, allocations: 63.8 kB / 0.5479 GB, free: 27.05 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.003321, allocations: 310.5 kB / 0.5482 GB, free: 26.75 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.005e-05/0.003401, allocations: 54.69 kB / 0.5482 GB, free: 26.7 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.003557, allocations: 191.6 kB / 0.5484 GB, free: 26.51 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.003661, allocations: 95.77 kB / 0.5485 GB, free: 26.41 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.003687, allocations: 27.94 kB / 0.5485 GB, free: 26.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.594e-05/0.003713, allocations: 24 kB / 0.5486 GB, free: 26.36 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.665e-05/0.003739, allocations: 31.88 kB / 0.5486 GB, free: 26.33 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.138e-05/0.003791, allocations: 75.88 kB / 0.5487 GB, free: 26.26 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.003927, allocations: 167.4 kB / 0.5488 GB, free: 26.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.003933, allocations: 0 / 0.5488 GB, free: 26.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.003933, allocations: 3.938 kB / 0.5488 GB, free: 26.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.003939, allocations: 0 / 0.5488 GB, free: 26.09 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.0003904/0.00433, allocations: 0.5496 MB / 0.5494 GB, free: 25.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.091e-05/0.004351, allocations: 11.89 kB / 0.5494 GB, free: 25.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.004389, allocations: 32.91 kB / 0.5494 GB, free: 25.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.004501, allocations: 168.2 kB / 0.5496 GB, free: 25.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.004515, allocations: 16.38 kB / 0.5496 GB, free: 25.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.004537, allocations: 16.38 kB / 0.5496 GB, free: 25.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.004672, allocations: 200 kB / 0.5498 GB, free: 25.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.004681, allocations: 4.141 kB / 0.5498 GB, free: 25.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.004691, allocations: 19.62 kB / 0.5498 GB, free: 25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.004695, allocations: 4 kB / 0.5498 GB, free: 25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.427e-05/0.004779, allocations: 131.1 kB / 0.5499 GB, free: 24.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003201/0.005099, allocations: 355.3 kB / 0.5503 GB, free: 24.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.005235, allocations: 155.9 kB / 0.5504 GB, free: 24.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.366e-05/0.005288, allocations: 96.23 kB / 0.5505 GB, free: 24.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.866e-06/0.005297, allocations: 8 kB / 0.5505 GB, free: 24.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000136/0.005433, allocations: 306.4 kB / 0.5508 GB, free: 23.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 1.182e-06/0.005434, allocations: 0 / 0.5508 GB, free: 23.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005465/0.005981, allocations: 0.7943 MB / 0.5516 GB, free: 22.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.006019, allocations: 285 kB / 0.5519 GB, free: 22.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.561e-05/0.006075, allocations: 166.8 kB / 0.552 GB, free: 22.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.006088, allocations: 37.7 kB / 0.5521 GB, free: 22.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.609e-05/0.006114, allocations: 116.9 kB / 0.5522 GB, free: 22.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.688e-05/0.006151, allocations: 103.2 kB / 0.5523 GB, free: 22.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.998e-05/0.006201, allocations: 65.62 kB / 0.5523 GB, free: 22.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.11e-05/0.006232, allocations: 334.8 kB / 0.5527 GB, free: 21.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.665e-05/0.006288, allocations: 138.9 kB / 0.5528 GB, free: 21.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.898e-05/0.006357, allocations: 211.2 kB / 0.553 GB, free: 21.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.006472, allocations: 300.7 kB / 0.5533 GB, free: 21.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.006474, allocations: 4 kB / 0.5533 GB, free: 21.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0001795/0.006653, allocations: 354 kB / 0.5536 GB, free: 20.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.006677, allocations: 97.09 kB / 0.5537 GB, free: 20.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.006681, allocations: 4 kB / 0.5537 GB, free: 20.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.006687, allocations: 4 kB / 0.5537 GB, free: 20.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.006854, allocations: 91.88 kB / 0.5538 GB, free: 20.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.006858, allocations: 0 / 0.5538 GB, free: 20.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.137e-05/0.006949, allocations: 19.98 kB / 0.5538 GB, free: 20.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.006962, allocations: 15.94 kB / 0.5538 GB, free: 20.39 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 8.326e-05/0.007045, allocations: 203.1 kB / 0.554 GB, free: 20.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.007069, allocations: 27.97 kB / 0.5541 GB, free: 20.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.007092, allocations: 26.66 kB / 0.5541 GB, free: 20.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.007094, allocations: 2.812 kB / 0.5541 GB, free: 20.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.007096, allocations: 0 / 0.5541 GB, free: 20.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.007099, allocations: 7.984 kB / 0.5541 GB, free: 20.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.007368, allocations: 499.2 kB / 0.5546 GB, free: 19.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.007369, allocations: 0 / 0.5546 GB, free: 19.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.00751, allocations: 64.61 kB / 0.5546 GB, free: 19.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.532e-05/0.007525, allocations: 11.91 kB / 0.5546 GB, free: 19.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.007527, allocations: 0 / 0.5546 GB, free: 19.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.007539, allocations: 11.98 kB / 0.5547 GB, free: 19.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.00754, allocations: 0 / 0.5547 GB, free: 19.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.00754, allocations: 4 kB / 0.5547 GB, free: 19.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002242/0.007765, allocations: 0.5172 MB / 0.5552 GB, free: 18.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.007792, allocations: 12 kB / 0.5552 GB, free: 18.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.007875, allocations: 19.98 kB / 0.5552 GB, free: 18.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.709e-05/0.007912, allocations: 23.95 kB / 0.5552 GB, free: 18.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.00792, allocations: 8 kB / 0.5552 GB, free: 18.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.635e-05/0.007947, allocations: 37.52 kB / 0.5553 GB, free: 18.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007947, allocations: 0 / 0.5553 GB, free: 18.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001599/0.008107, allocations: 75.94 kB / 0.5553 GB, free: 18.74 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 5.284e-05/0.00816, allocations: 95.61 kB / 0.5554 GB, free: 18.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001772/0.008337, allocations: 474.8 kB / 0.5559 GB, free: 18.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.008342, allocations: 8 kB / 0.5559 GB, free: 18.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.459e-05/0.008436, allocations: 269.1 kB / 0.5561 GB, free: 17.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.008663, allocations: 364.9 kB / 0.5565 GB, free: 17.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005316/0.01398, allocations: 0.598 MB / 0.5571 GB, free: 16.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.059e-05/0.01401, allocations: 84.31 kB / 0.5572 GB, free: 16.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.487e-05/0.01407, allocations: 25.94 kB / 0.5572 GB, free: 16.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.0142, allocations: 123.3 kB / 0.5573 GB, free: 16.49 MB / 410.7 MB Notification: Performance of SimCode: time 3.2e-07/0.0142, allocations: 0 / 0.5573 GB, free: 16.49 MB / 410.7 MB Notification: Performance of Templates: time 0.3119/0.3261, allocations: 4.012 MB / 0.5612 GB, free: 85.25 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.650809676386416]