Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.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.001783/0.001783, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.002094/0.002094, allocations: 173.6 kB / 22.76 MB, free: 1.664 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 1.526/1.526, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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 3.437/3.437, allocations: 274.5 MB / 0.5215 GB, free: 14.18 MB / 458.7 MB " [Timeout remaining time 176] 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.SingleDoseLumen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen") translateModel(Pharmacolibrary.DevModels.SingleDoseLumen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 0.8438 kB / 0.6472 GB, free: 38.9 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.886e-05/3.111e-05, allocations: 3.859 kB / 0.6472 GB, free: 38.89 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.003446/0.003477, allocations: 2.917 MB / 0.6501 GB, free: 36.99 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.004874, allocations: 0.7389 MB / 0.6508 GB, free: 36.5 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.00499, allocations: 1.719 kB / 0.6508 GB, free: 36.5 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 7.71e-05/0.005067, allocations: 43.75 kB / 0.6508 GB, free: 36.47 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002943/0.005361, allocations: 112.5 kB / 0.6509 GB, free: 36.43 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.005618, allocations: 95.81 kB / 0.651 GB, free: 36.38 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.005939, allocations: 419 kB / 0.6514 GB, free: 36.16 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.00626, allocations: 220.6 kB / 0.6516 GB, free: 36.03 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000272/0.006532, allocations: 245.3 kB / 0.6519 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.006781, allocations: 157.8 kB / 0.652 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 6.132e-05/0.006842, allocations: 35.66 kB / 0.6521 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.625e-05/0.006908, allocations: 40.72 kB / 0.6521 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 6.087e-05/0.006969, allocations: 79.11 kB / 0.6522 GB, free: 35.83 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.007107, allocations: 135.9 kB / 0.6523 GB, free: 35.77 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003831/0.00749, allocations: 387.5 kB / 0.6527 GB, free: 35.61 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.007494, allocations: 0 / 0.6527 GB, free: 35.61 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.007496, allocations: 0 / 0.6527 GB, free: 35.61 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.007504, allocations: 1.5 kB / 0.6527 GB, free: 35.61 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001009/0.008513, allocations: 0.6906 MB / 0.6533 GB, free: 35.03 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.008549, allocations: 10.16 kB / 0.6534 GB, free: 35.03 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.008663, allocations: 53.81 kB / 0.6534 GB, free: 35.01 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.009005, allocations: 224.1 kB / 0.6536 GB, free: 34.82 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.009031, allocations: 19.19 kB / 0.6536 GB, free: 34.81 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.00909, allocations: 33.66 kB / 0.6537 GB, free: 34.8 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005684/0.009658, allocations: 415.4 kB / 0.6541 GB, free: 34.56 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.009678, allocations: 7.891 kB / 0.6541 GB, free: 34.55 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.009708, allocations: 11.38 kB / 0.6541 GB, free: 34.55 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.009716, allocations: 5.875 kB / 0.6541 GB, free: 34.55 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005285/0.01024, allocations: 263.1 kB / 0.6543 GB, free: 34.45 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.01174, allocations: 0.9203 MB / 0.6552 GB, free: 33.82 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006788/0.01242, allocations: 259.2 kB / 0.6555 GB, free: 33.69 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.01267, allocations: 124.2 kB / 0.6556 GB, free: 33.62 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.01271, allocations: 4.438 kB / 0.6556 GB, free: 33.62 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004349/0.01314, allocations: 289.5 kB / 0.6559 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000261/0.0134, allocations: 37.31 kB / 0.6559 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.0134, allocations: 1.562 kB / 0.6559 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of matching and sorting (n=31): time 0.001804/0.01521, allocations: 0.8886 MB / 0.6568 GB, free: 32.88 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.01525, allocations: 142 kB / 0.6569 GB, free: 32.72 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.01544, allocations: 282.3 kB / 0.6572 GB, free: 32.51 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.01546, allocations: 32.48 kB / 0.6572 GB, free: 32.48 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 8.242e-05/0.01555, allocations: 214.3 kB / 0.6574 GB, free: 32.29 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 6.804e-05/0.01561, allocations: 119.8 kB / 0.6575 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.01573, allocations: 91.47 kB / 0.6576 GB, free: 32.13 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.01583, allocations: 0.517 MB / 0.6581 GB, free: 31.62 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002591/0.01609, allocations: 191.3 kB / 0.6583 GB, free: 31.51 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.0164, allocations: 322.2 kB / 0.6586 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006914/0.01709, allocations: 0.5763 MB / 0.6592 GB, free: 30.77 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01709, allocations: 1.406 kB / 0.6592 GB, free: 30.77 MB / 0.5262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007629/0.01786, allocations: 0.5081 MB / 0.6597 GB, free: 30.49 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.0179, allocations: 67.25 kB / 0.6597 GB, free: 30.42 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.0179, allocations: 2.812 kB / 0.6598 GB, free: 30.42 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.01792, allocations: 7.75 kB / 0.6598 GB, free: 30.42 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.0183, allocations: 95.66 kB / 0.6598 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.01832, allocations: 4.219 kB / 0.6599 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/0.01854, allocations: 17.11 kB / 0.6599 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.01857, allocations: 25.59 kB / 0.6599 GB, free: 30.4 MB / 0.5262 GB Warning: Assuming fixed start value for the following 8 variables: singleDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real singleDose.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real GILumen.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real GIT.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real artery.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real GILumen.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real GILumen.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real GILumen.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.GILumen.Cmin,GILumen.Cmin,$PRE.GILumen.Cmax,GILumen.Cmax,$PRE.GILumen.rising,$PRE.singleDose.pulse.count,$PRE.singleDose.pulse.T_start,GILumen.rising,singleDose.pulse.count,singleDose.pulse.T_start,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * 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.0002416/0.01881, allocations: 258.8 kB / 0.6601 GB, free: 30.17 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.01887, allocations: 38.8 kB / 0.6602 GB, free: 30.15 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000672/0.01954, allocations: 376.2 kB / 0.6605 GB, free: 29.97 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.01954, allocations: 6.031 kB / 0.6605 GB, free: 29.97 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.01955, allocations: 0 / 0.6605 GB, free: 29.97 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.01956, allocations: 1.406 kB / 0.6605 GB, free: 29.97 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.02065, allocations: 0.7408 MB / 0.6613 GB, free: 29.47 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.02065, allocations: 1.406 kB / 0.6613 GB, free: 29.47 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002988/0.02095, allocations: 44.72 kB / 0.6613 GB, free: 29.47 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.02096, allocations: 1.438 kB / 0.6613 GB, free: 29.47 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.02099, allocations: 15.17 kB / 0.6613 GB, free: 29.46 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.02099, allocations: 1.375 kB / 0.6613 GB, free: 29.46 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.02099, allocations: 0 / 0.6613 GB, free: 29.46 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.02202, allocations: 0.6606 MB / 0.662 GB, free: 29.05 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.02208, allocations: 20.72 kB / 0.662 GB, free: 29.04 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.308e-05/0.02214, allocations: 8.188 kB / 0.662 GB, free: 29.03 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.02233, allocations: 21.2 kB / 0.662 GB, free: 29.03 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.02244, allocations: 23.02 kB / 0.662 GB, free: 29.02 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.02246, allocations: 14.8 kB / 0.6621 GB, free: 29.02 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0001488/0.02261, allocations: 199.5 kB / 0.6622 GB, free: 28.88 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6e-08/0.02261, allocations: 0 / 0.6622 GB, free: 28.88 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0004231/0.02303, allocations: 79.69 kB / 0.6623 GB, free: 28.87 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (singleDose.TotalCumulativeMass,singleDose.variableDose.TotalCumulativeMass,GILumen.C,GILumen.AUC,GIT.M,GIT.AUC,artery.M,artery.AUC) * Number of discrete variables: 8 ($whenCondition3,$whenCondition1,$whenCondition2,singleDose.pulse.T_start,singleDose.pulse.count,GILumen.Cmax,GILumen.Cmin,GILumen.rising) * Number of discrete states: 6 (singleDose.pulse.count,GILumen.Cmin,$whenCondition2,GILumen.Cmax,$whenCondition1,GILumen.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * 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.0001347/0.02317, allocations: 116.2 kB / 0.6624 GB, free: 28.77 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0006907/0.02386, allocations: 490.4 kB / 0.6629 GB, free: 28.46 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.02386, allocations: 3.938 kB / 0.6629 GB, free: 28.46 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.02417, allocations: 227.7 kB / 0.6631 GB, free: 28.32 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005159/0.02469, allocations: 76.81 kB / 0.6632 GB, free: 28.3 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.02602, allocations: 0.8465 MB / 0.664 GB, free: 27.74 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.02614, allocations: 161.7 kB / 0.6642 GB, free: 27.66 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001454/0.02629, allocations: 30.88 kB / 0.6642 GB, free: 27.65 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.252e-05/0.02638, allocations: 34.47 kB / 0.6642 GB, free: 27.64 MB / 0.5262 GB Notification: Performance of SimCode: time 7.51e-07/0.02638, allocations: 0 / 0.6642 GB, free: 27.64 MB / 0.5262 GB Notification: Performance of Templates: time 0.008778/0.03516, allocations: 4.194 MB / 0.6683 GB, free: 27.28 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.459677336039022]