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.0008438/0.0008438, allocations: 93.17 kB / 19.42 MB, free: 484 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.0009053/0.0009053, allocations: 172.9 kB / 22.73 MB, free: 1.812 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.016/1.016, allocations: 177.1 MB / 203.1 MB, free: 5.668 MB / 186.7 MB " [Timeout remaining time 179] 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 1.709/1.709, allocations: 273.5 MB / 0.5205 GB, free: 14.91 MB / 458.7 MB " [Timeout remaining time 178] 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.956e-06/2.956e-06, allocations: 0 / 0.6462 GB, free: 38.75 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.352e-05/3.648e-05, allocations: 6.141 kB / 0.6462 GB, free: 38.75 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.003549/0.003585, allocations: 2.944 MB / 0.6491 GB, free: 36.85 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001192/0.004777, allocations: 0.7414 MB / 0.6498 GB, free: 36.36 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.004896, allocations: 4.875 kB / 0.6498 GB, free: 36.36 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 8.374e-05/0.004979, allocations: 44.05 kB / 0.6499 GB, free: 36.33 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003256/0.005305, allocations: 117 kB / 0.65 GB, free: 36.29 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.00561, allocations: 93.3 kB / 0.6501 GB, free: 36.23 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.005965, allocations: 421.1 kB / 0.6505 GB, free: 36.02 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.006285, allocations: 220.6 kB / 0.6507 GB, free: 35.89 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.00654, allocations: 251.6 kB / 0.6509 GB, free: 35.79 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.006733, allocations: 150.1 kB / 0.6511 GB, free: 35.75 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 4.574e-05/0.006779, allocations: 33.88 kB / 0.6511 GB, free: 35.75 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.472e-05/0.006824, allocations: 35.06 kB / 0.6511 GB, free: 35.75 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 4.584e-05/0.00687, allocations: 75.11 kB / 0.6512 GB, free: 35.7 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.00698, allocations: 135.2 kB / 0.6513 GB, free: 35.64 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.007235, allocations: 266.1 kB / 0.6516 GB, free: 35.51 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.007237, allocations: 0 / 0.6516 GB, free: 35.51 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.252e-06/0.007239, allocations: 1.188 kB / 0.6516 GB, free: 35.51 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.007245, allocations: 0 / 0.6516 GB, free: 35.51 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.0007886/0.008034, allocations: 0.6645 MB / 0.6522 GB, free: 34.95 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.008079, allocations: 9.75 kB / 0.6522 GB, free: 34.95 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.008178, allocations: 60.56 kB / 0.6523 GB, free: 34.92 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.00843, allocations: 217.2 kB / 0.6525 GB, free: 34.73 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.008463, allocations: 20.78 kB / 0.6525 GB, free: 34.72 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.008518, allocations: 29 kB / 0.6526 GB, free: 34.71 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004129/0.008931, allocations: 353.2 kB / 0.6529 GB, free: 34.5 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.008949, allocations: 14.83 kB / 0.6529 GB, free: 34.49 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.008971, allocations: 9.844 kB / 0.6529 GB, free: 34.48 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.008984, allocations: 6.188 kB / 0.6529 GB, free: 34.48 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002351/0.009219, allocations: 169.1 kB / 0.6531 GB, free: 34.43 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.01023, allocations: 0.8249 MB / 0.6539 GB, free: 33.84 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003941/0.01062, allocations: 176.5 kB / 0.6541 GB, free: 33.75 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.01077, allocations: 89.66 kB / 0.6541 GB, free: 33.7 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.01081, allocations: 4.656 kB / 0.6541 GB, free: 33.7 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.01108, allocations: 242.8 kB / 0.6544 GB, free: 33.52 MB / 0.5262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001432/0.01122, allocations: 39.22 kB / 0.6544 GB, free: 33.51 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=30): time 2.625e-06/0.01122, allocations: 0 / 0.6544 GB, free: 33.51 MB / 0.5262 GB Notification: Performance of matching and sorting (n=31): time 0.001326/0.01255, allocations: 0.7392 MB / 0.6551 GB, free: 33.04 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.01261, allocations: 138.5 kB / 0.6553 GB, free: 32.88 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.01283, allocations: 241.9 kB / 0.6555 GB, free: 32.69 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.01285, allocations: 32.52 kB / 0.6555 GB, free: 32.65 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.01298, allocations: 217.1 kB / 0.6557 GB, free: 32.46 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 8.903e-05/0.01307, allocations: 107.3 kB / 0.6558 GB, free: 32.37 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.01321, allocations: 77.58 kB / 0.6559 GB, free: 32.32 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.01333, allocations: 0.5042 MB / 0.6564 GB, free: 31.82 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.01352, allocations: 134.4 kB / 0.6565 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.01378, allocations: 265.6 kB / 0.6568 GB, free: 31.46 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/0.01433, allocations: 465.4 kB / 0.6572 GB, free: 31.08 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01433, allocations: 0 / 0.6572 GB, free: 31.08 MB / 0.5262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004989/0.01483, allocations: 417.2 kB / 0.6576 GB, free: 30.84 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/0.01488, allocations: 65.61 kB / 0.6577 GB, free: 30.77 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.01489, allocations: 2.75 kB / 0.6577 GB, free: 30.77 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.152e-05/0.01492, allocations: 5.656 kB / 0.6577 GB, free: 30.77 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002609/0.01518, allocations: 94.78 kB / 0.6578 GB, free: 30.76 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.0152, allocations: 8.203 kB / 0.6578 GB, free: 30.76 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.01531, allocations: 19.44 kB / 0.6578 GB, free: 30.75 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.01534, allocations: 19.89 kB / 0.6578 GB, free: 30.75 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.0001926/0.01553, allocations: 241.2 kB / 0.6581 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.616e-05/0.01558, allocations: 45.2 kB / 0.6581 GB, free: 30.51 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003742/0.01595, allocations: 311.8 kB / 0.6584 GB, free: 30.35 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.01595, allocations: 2.75 kB / 0.6584 GB, free: 30.35 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.01596, allocations: 1 kB / 0.6584 GB, free: 30.35 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.01596, allocations: 0 / 0.6584 GB, free: 30.35 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005722/0.01654, allocations: 0.6393 MB / 0.659 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.01654, allocations: 0 / 0.659 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.01672, allocations: 45.11 kB / 0.6591 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.01672, allocations: 1.406 kB / 0.6591 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.01674, allocations: 10.84 kB / 0.6591 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.01674, allocations: 8.5 kB / 0.6591 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01675, allocations: 1.406 kB / 0.6591 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004852/0.01723, allocations: 0.5342 MB / 0.6596 GB, free: 29.53 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.724e-05/0.01726, allocations: 21.44 kB / 0.6596 GB, free: 29.51 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.0173, allocations: 15.55 kB / 0.6597 GB, free: 29.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.837e-05/0.0174, allocations: 14.75 kB / 0.6597 GB, free: 29.5 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.946e-05/0.01748, allocations: 21.45 kB / 0.6597 GB, free: 29.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.0175, allocations: 10.47 kB / 0.6597 GB, free: 29.5 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 9.222e-05/0.0176, allocations: 184.2 kB / 0.6599 GB, free: 29.36 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8e-08/0.0176, allocations: 0 / 0.6599 GB, free: 29.36 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002568/0.01785, allocations: 80.62 kB / 0.66 GB, free: 29.35 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.0001048/0.01796, allocations: 115.7 kB / 0.6601 GB, free: 29.25 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003706/0.01833, allocations: 390.2 kB / 0.6604 GB, free: 28.98 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01833, allocations: 1.688 kB / 0.6604 GB, free: 28.98 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.01847, allocations: 181.2 kB / 0.6606 GB, free: 28.86 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.01882, allocations: 76.2 kB / 0.6607 GB, free: 28.85 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.02056, allocations: 0.8765 MB / 0.6615 GB, free: 28.28 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.127e-05/0.02062, allocations: 93.14 kB / 0.6616 GB, free: 28.21 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001099/0.02073, allocations: 37.56 kB / 0.6617 GB, free: 28.2 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.405e-05/0.02081, allocations: 26.72 kB / 0.6617 GB, free: 28.19 MB / 0.5262 GB Notification: Performance of SimCode: time 1.152e-06/0.02081, allocations: 0 / 0.6617 GB, free: 28.19 MB / 0.5262 GB Notification: Performance of Templates: time 0.00684/0.02765, allocations: 4.165 MB / 0.6658 GB, free: 27.82 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: 5.738934425171465]