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.0009827/0.0009827, allocations: 82.05 kB / 19.87 MB, free: 4.621 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.001244/0.001244, allocations: 170 kB / 23.28 MB, free: 1.223 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.9579/0.9579, allocations: 177.1 MB / 203.7 MB, free: 5.508 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.723/1.723, allocations: 273.5 MB / 0.5212 GB, free: 14.73 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 1.984e-06/1.984e-06, allocations: 0 / 0.6474 GB, free: 38.41 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.911e-05, allocations: 6.031 kB / 0.6474 GB, free: 38.4 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.004062/0.004092, allocations: 2.922 MB / 0.6502 GB, free: 36.5 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001708/0.005799, allocations: 0.7434 MB / 0.651 GB, free: 36.01 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.005988, allocations: 1.688 kB / 0.651 GB, free: 36.01 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.006106, allocations: 47.34 kB / 0.651 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004255/0.006532, allocations: 119.1 kB / 0.6511 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.0069, allocations: 91.5 kB / 0.6512 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0004286/0.007328, allocations: 424 kB / 0.6516 GB, free: 35.67 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.007649, allocations: 221.2 kB / 0.6518 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.007918, allocations: 242.7 kB / 0.6521 GB, free: 35.45 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.008121, allocations: 150 kB / 0.6522 GB, free: 35.4 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 4.882e-05/0.00817, allocations: 38.14 kB / 0.6522 GB, free: 35.4 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.569e-05/0.008216, allocations: 35.47 kB / 0.6523 GB, free: 35.4 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 5.36e-05/0.00827, allocations: 78.75 kB / 0.6523 GB, free: 35.35 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.008371, allocations: 135 kB / 0.6525 GB, free: 35.29 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.008647, allocations: 261 kB / 0.6527 GB, free: 35.17 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.008653, allocations: 0 / 0.6527 GB, free: 35.17 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.452e-06/0.008654, allocations: 1.25 kB / 0.6527 GB, free: 35.17 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.008659, allocations: 0 / 0.6527 GB, free: 35.17 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.0007005/0.00936, allocations: 0.6771 MB / 0.6534 GB, free: 34.59 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.009408, allocations: 13.44 kB / 0.6534 GB, free: 34.59 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.184e-05/0.00949, allocations: 56.09 kB / 0.6534 GB, free: 34.57 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.009677, allocations: 203.2 kB / 0.6536 GB, free: 34.39 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.009705, allocations: 24.03 kB / 0.6537 GB, free: 34.38 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.009748, allocations: 28.28 kB / 0.6537 GB, free: 34.37 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003534/0.0101, allocations: 339.4 kB / 0.654 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.01012, allocations: 7.891 kB / 0.654 GB, free: 34.15 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.01014, allocations: 14.75 kB / 0.654 GB, free: 34.14 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.01015, allocations: 9.688 kB / 0.654 GB, free: 34.14 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.01031, allocations: 143 kB / 0.6542 GB, free: 34.1 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000942/0.01125, allocations: 0.7947 MB / 0.655 GB, free: 33.54 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003035/0.01156, allocations: 171.8 kB / 0.6551 GB, free: 33.45 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.229e-05/0.01164, allocations: 79.11 kB / 0.6552 GB, free: 33.4 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.01166, allocations: 3.688 kB / 0.6552 GB, free: 33.4 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.01187, allocations: 227.6 kB / 0.6554 GB, free: 33.23 MB / 0.5262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001215/0.01199, allocations: 38.98 kB / 0.6555 GB, free: 33.22 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.01199, allocations: 0 / 0.6555 GB, free: 33.22 MB / 0.5262 GB Notification: Performance of matching and sorting (n=31): time 0.0009198/0.01291, allocations: 0.6773 MB / 0.6561 GB, free: 32.79 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.01295, allocations: 135.3 kB / 0.6562 GB, free: 32.63 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.01308, allocations: 243.8 kB / 0.6565 GB, free: 32.44 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.01309, allocations: 32.2 kB / 0.6565 GB, free: 32.4 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.01316, allocations: 207.2 kB / 0.6567 GB, free: 32.21 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.01322, allocations: 119.2 kB / 0.6568 GB, free: 32.12 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.126e-05/0.01331, allocations: 74.59 kB / 0.6569 GB, free: 32.07 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.731e-05/0.01338, allocations: 0.5122 MB / 0.6574 GB, free: 31.56 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.01349, allocations: 116 kB / 0.6575 GB, free: 31.48 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.01361, allocations: 260.3 kB / 0.6578 GB, free: 31.22 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.01385, allocations: 432.5 kB / 0.6582 GB, free: 30.85 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01386, allocations: 0 / 0.6582 GB, free: 30.85 MB / 0.5262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0002993/0.01416, allocations: 398.2 kB / 0.6585 GB, free: 30.62 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.01419, allocations: 62.34 kB / 0.6586 GB, free: 30.55 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.0142, allocations: 2.781 kB / 0.6586 GB, free: 30.55 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.01421, allocations: 5.594 kB / 0.6586 GB, free: 30.55 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.01442, allocations: 91.34 kB / 0.6587 GB, free: 30.55 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.01443, allocations: 11.55 kB / 0.6587 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.795e-05/0.01452, allocations: 19.12 kB / 0.6587 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.01454, allocations: 17.2 kB / 0.6587 GB, free: 30.53 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.0001536/0.01469, allocations: 252 kB / 0.659 GB, free: 30.31 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.623e-05/0.01473, allocations: 38.23 kB / 0.659 GB, free: 30.29 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002754/0.01501, allocations: 298.2 kB / 0.6593 GB, free: 30.14 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.01501, allocations: 2.75 kB / 0.6593 GB, free: 30.14 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.01501, allocations: 3.312 kB / 0.6593 GB, free: 30.14 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.01502, allocations: 3.281 kB / 0.6593 GB, free: 30.14 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004508/0.01547, allocations: 0.5769 MB / 0.6599 GB, free: 29.73 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.01547, allocations: 0 / 0.6599 GB, free: 29.73 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.01563, allocations: 55.55 kB / 0.6599 GB, free: 29.72 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.01564, allocations: 1.406 kB / 0.6599 GB, free: 29.72 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.01565, allocations: 8.219 kB / 0.6599 GB, free: 29.71 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.01566, allocations: 7.562 kB / 0.6599 GB, free: 29.71 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01566, allocations: 0 / 0.6599 GB, free: 29.71 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003402/0.016, allocations: 0.5079 MB / 0.6604 GB, free: 29.37 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.102e-05/0.01602, allocations: 13.5 kB / 0.6605 GB, free: 29.36 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.01605, allocations: 9.625 kB / 0.6605 GB, free: 29.36 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.298e-05/0.01614, allocations: 16.7 kB / 0.6605 GB, free: 29.35 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.01619, allocations: 21.64 kB / 0.6605 GB, free: 29.35 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.0162, allocations: 12.98 kB / 0.6605 GB, free: 29.34 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 5.899e-05/0.01626, allocations: 179.8 kB / 0.6607 GB, free: 29.21 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.01626, allocations: 1.344 kB / 0.6607 GB, free: 29.21 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002359/0.0165, allocations: 80.22 kB / 0.6608 GB, free: 29.2 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.0001082/0.01661, allocations: 106.6 kB / 0.6609 GB, free: 29.11 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0002637/0.01687, allocations: 377.4 kB / 0.6612 GB, free: 28.84 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01687, allocations: 2.094 kB / 0.6612 GB, free: 28.84 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.01698, allocations: 166.3 kB / 0.6614 GB, free: 28.73 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.01731, allocations: 83.27 kB / 0.6615 GB, free: 28.71 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.01887, allocations: 0.8755 MB / 0.6623 GB, free: 28.14 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.572e-05/0.01892, allocations: 91.52 kB / 0.6624 GB, free: 28.07 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001034/0.01903, allocations: 37.09 kB / 0.6624 GB, free: 28.06 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.01921, allocations: 154.6 kB / 0.6626 GB, free: 27.99 MB / 0.5262 GB Notification: Performance of SimCode: time 1.173e-06/0.01921, allocations: 0 / 0.6626 GB, free: 27.99 MB / 0.5262 GB Notification: Performance of Templates: time 0.00669/0.0259, allocations: 4.556 MB / 0.667 GB, free: 27.55 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.6573180803097785]