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.001573/0.001573, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.002019/0.002019, allocations: 173 kB / 23.49 MB, free: 1.059 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 0.9599/0.9599, allocations: 177.1 MB / 203.8 MB, free: 5.648 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.658/1.658, allocations: 273.5 MB / 0.5213 GB, free: 14.8 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.454e-06/2.454e-06, allocations: 0 / 0.6462 GB, free: 39.14 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.326e-05/3.572e-05, allocations: 2.312 kB / 0.6462 GB, free: 39.14 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.003693/0.003729, allocations: 2.943 MB / 0.6491 GB, free: 37.23 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.004955, allocations: 0.7417 MB / 0.6498 GB, free: 36.74 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.005059, allocations: 6.625 kB / 0.6498 GB, free: 36.73 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 7.929e-05/0.005138, allocations: 41.55 kB / 0.6498 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003141/0.005452, allocations: 109.1 kB / 0.6499 GB, free: 36.67 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.005737, allocations: 102.3 kB / 0.65 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.006094, allocations: 419.4 kB / 0.6504 GB, free: 36.4 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003793/0.006473, allocations: 213.4 kB / 0.6506 GB, free: 36.28 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002979/0.006771, allocations: 248.4 kB / 0.6509 GB, free: 36.18 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.007013, allocations: 151.4 kB / 0.651 GB, free: 36.13 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 6.334e-05/0.007076, allocations: 39.97 kB / 0.6511 GB, free: 36.13 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.842e-05/0.007125, allocations: 38.03 kB / 0.6511 GB, free: 36.13 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 6.597e-05/0.007191, allocations: 81.64 kB / 0.6512 GB, free: 36.07 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.007332, allocations: 132 kB / 0.6513 GB, free: 36.02 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003435/0.007675, allocations: 278.3 kB / 0.6516 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.007679, allocations: 0 / 0.6516 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of FrontEnd: time 8.61e-07/0.007679, allocations: 0 / 0.6516 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.007688, allocations: 3.312 kB / 0.6516 GB, free: 35.88 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.0008996/0.008588, allocations: 0.6666 MB / 0.6522 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.008643, allocations: 10.84 kB / 0.6522 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.008754, allocations: 57.59 kB / 0.6523 GB, free: 35.3 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.009094, allocations: 223.8 kB / 0.6525 GB, free: 35.11 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/0.009133, allocations: 21.59 kB / 0.6525 GB, free: 35.1 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.009194, allocations: 35.77 kB / 0.6526 GB, free: 35.08 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.009656, allocations: 361.1 kB / 0.6529 GB, free: 34.87 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.009674, allocations: 3.938 kB / 0.6529 GB, free: 34.86 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.009703, allocations: 11.53 kB / 0.6529 GB, free: 34.86 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.009716, allocations: 8.219 kB / 0.6529 GB, free: 34.86 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.009963, allocations: 168.5 kB / 0.6531 GB, free: 34.8 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.01114, allocations: 0.833 MB / 0.6539 GB, free: 34.21 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.01151, allocations: 179.7 kB / 0.6541 GB, free: 34.12 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.247e-05/0.01161, allocations: 86.22 kB / 0.6542 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.01163, allocations: 3.531 kB / 0.6542 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.01186, allocations: 243.6 kB / 0.6544 GB, free: 33.89 MB / 0.5262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001218/0.01198, allocations: 38.55 kB / 0.6544 GB, free: 33.88 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=30): time 2.053e-06/0.01198, allocations: 1.344 kB / 0.6544 GB, free: 33.88 MB / 0.5262 GB Notification: Performance of matching and sorting (n=31): time 0.001082/0.01307, allocations: 0.7377 MB / 0.6551 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.01312, allocations: 134.4 kB / 0.6553 GB, free: 33.25 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.01325, allocations: 252.7 kB / 0.6555 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.01326, allocations: 31.17 kB / 0.6555 GB, free: 33.02 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 7.232e-05/0.01334, allocations: 206.8 kB / 0.6557 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 5.86e-05/0.01339, allocations: 112.2 kB / 0.6558 GB, free: 32.75 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.022e-05/0.01348, allocations: 77.61 kB / 0.6559 GB, free: 32.7 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.786e-05/0.01354, allocations: 0.506 MB / 0.6564 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.01366, allocations: 131.9 kB / 0.6565 GB, free: 32.1 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.01384, allocations: 267.4 kB / 0.6568 GB, free: 31.83 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005871/0.01443, allocations: 457.4 kB / 0.6572 GB, free: 31.45 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.01443, allocations: 1.094 kB / 0.6572 GB, free: 31.45 MB / 0.5262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006499/0.01508, allocations: 417.5 kB / 0.6576 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 5.645e-05/0.01514, allocations: 63.39 kB / 0.6577 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.01515, allocations: 3.375 kB / 0.6577 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.01518, allocations: 6.531 kB / 0.6577 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.01547, allocations: 94.75 kB / 0.6578 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.01548, allocations: 10.81 kB / 0.6578 GB, free: 31.13 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.01559, allocations: 16.27 kB / 0.6578 GB, free: 31.13 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.01562, allocations: 20.97 kB / 0.6578 GB, free: 31.12 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.0002289/0.01585, allocations: 258.3 kB / 0.6581 GB, free: 30.89 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.0159, allocations: 33.66 kB / 0.6581 GB, free: 30.88 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/0.01634, allocations: 316.4 kB / 0.6584 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.01634, allocations: 5.891 kB / 0.6584 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.01635, allocations: 0 / 0.6584 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.01636, allocations: 0 / 0.6584 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006403/0.017, allocations: 0.6301 MB / 0.659 GB, free: 30.27 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.017, allocations: 2.469 kB / 0.659 GB, free: 30.27 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.01719, allocations: 52.83 kB / 0.6591 GB, free: 30.26 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.0172, allocations: 3.156 kB / 0.6591 GB, free: 30.26 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.01722, allocations: 11.75 kB / 0.6591 GB, free: 30.26 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.01722, allocations: 1.406 kB / 0.6591 GB, free: 30.26 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.01723, allocations: 0 / 0.6591 GB, free: 30.26 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/0.01773, allocations: 0.5374 MB / 0.6596 GB, free: 29.89 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.611e-05/0.01775, allocations: 20.55 kB / 0.6597 GB, free: 29.88 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.01779, allocations: 11.28 kB / 0.6597 GB, free: 29.88 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.01789, allocations: 13.91 kB / 0.6597 GB, free: 29.88 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.349e-05/0.01797, allocations: 24.64 kB / 0.6597 GB, free: 29.87 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.01799, allocations: 14.16 kB / 0.6597 GB, free: 29.87 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 8.721e-05/0.01808, allocations: 185.1 kB / 0.6599 GB, free: 29.73 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8e-08/0.01808, allocations: 1.438 kB / 0.6599 GB, free: 29.73 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002688/0.01835, allocations: 81 kB / 0.66 GB, free: 29.72 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.0001107/0.01846, allocations: 108.9 kB / 0.6601 GB, free: 29.63 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003767/0.01884, allocations: 392 kB / 0.6604 GB, free: 29.36 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01884, allocations: 2.156 kB / 0.6604 GB, free: 29.36 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.01898, allocations: 185.1 kB / 0.6606 GB, free: 29.23 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.01932, allocations: 78.14 kB / 0.6607 GB, free: 29.22 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.02111, allocations: 0.9057 MB / 0.6616 GB, free: 28.62 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.02123, allocations: 160.3 kB / 0.6617 GB, free: 28.53 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.14e-05/0.02132, allocations: 35.75 kB / 0.6618 GB, free: 28.52 MB / 0.5262 GB Notification: Performance of SimCode: time 6.81e-07/0.02132, allocations: 0 / 0.6618 GB, free: 28.52 MB / 0.5262 GB Notification: Performance of Templates: time 0.004736/0.02605, allocations: 3.871 MB / 0.6656 GB, free: 28.21 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 > Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.672275207005441]