Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.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.002314/0.002314, allocations: 88.16 kB / 19.44 MB, free: 192 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.002728/0.002728, allocations: 165.3 kB / 22.76 MB, free: 1.523 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.568/1.568, allocations: 177.1 MB / 203.1 MB, free: 5.617 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.349/3.349, allocations: 274.5 MB / 0.5215 GB, free: 14.14 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.SingleDoseDiffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion") translateModel(Pharmacolibrary.DevModels.SingleDoseDiffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 0.6472 GB, free: 38.96 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.384e-05/2.544e-05, allocations: 5.266 kB / 0.6472 GB, free: 38.96 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseDiffusion): time 0.003638/0.003664, allocations: 2.877 MB / 0.65 GB, free: 37.07 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.004954, allocations: 0.7283 MB / 0.6507 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.005065, allocations: 2.312 kB / 0.6507 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 7.835e-05/0.005143, allocations: 45.08 kB / 0.6508 GB, free: 36.56 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.005431, allocations: 108.2 kB / 0.6509 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.005664, allocations: 93.11 kB / 0.651 GB, free: 36.47 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.00598, allocations: 424.6 kB / 0.6514 GB, free: 36.25 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003178/0.006298, allocations: 210.2 kB / 0.6516 GB, free: 36.13 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.006555, allocations: 244.9 kB / 0.6518 GB, free: 36.03 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.006799, allocations: 154.7 kB / 0.652 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 6.427e-05/0.006863, allocations: 35.81 kB / 0.652 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.7e-05/0.00693, allocations: 35.5 kB / 0.652 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 6.839e-05/0.006998, allocations: 83.11 kB / 0.6521 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.00715, allocations: 130.9 kB / 0.6522 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003517/0.007502, allocations: 382.4 kB / 0.6526 GB, free: 35.71 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.007505, allocations: 0 / 0.6526 GB, free: 35.71 MB / 0.5262 GB Notification: Performance of FrontEnd: time 7.91e-07/0.007506, allocations: 1.281 kB / 0.6526 GB, free: 35.71 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.007513, allocations: 1.688 kB / 0.6526 GB, free: 35.71 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.000944/0.008457, allocations: 0.6838 MB / 0.6533 GB, free: 35.14 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.00849, allocations: 9.938 kB / 0.6533 GB, free: 35.14 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.008598, allocations: 56.98 kB / 0.6533 GB, free: 35.12 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.008918, allocations: 222.6 kB / 0.6535 GB, free: 34.93 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.008941, allocations: 21.75 kB / 0.6536 GB, free: 34.92 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.008999, allocations: 39.77 kB / 0.6536 GB, free: 34.9 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005424/0.009541, allocations: 414.1 kB / 0.654 GB, free: 34.66 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.009563, allocations: 4.5 kB / 0.654 GB, free: 34.66 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.009595, allocations: 12.59 kB / 0.654 GB, free: 34.65 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.009603, allocations: 5.875 kB / 0.654 GB, free: 34.65 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.01011, allocations: 246.6 kB / 0.6543 GB, free: 34.56 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.01149, allocations: 0.9236 MB / 0.6552 GB, free: 33.92 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006166/0.0121, allocations: 233.8 kB / 0.6554 GB, free: 33.8 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.01236, allocations: 117.6 kB / 0.6555 GB, free: 33.74 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.01239, allocations: 6.438 kB / 0.6555 GB, free: 33.74 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/0.01283, allocations: 279.5 kB / 0.6558 GB, free: 33.55 MB / 0.5262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002439/0.01307, allocations: 44.92 kB / 0.6558 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=30): time 1.402e-06/0.01307, allocations: 0 / 0.6558 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of matching and sorting (n=31): time 0.001704/0.01478, allocations: 0.8784 MB / 0.6567 GB, free: 33 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.01482, allocations: 139.3 kB / 0.6568 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.015, allocations: 271.1 kB / 0.6571 GB, free: 32.63 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.01503, allocations: 32.48 kB / 0.6571 GB, free: 32.59 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 8.376e-05/0.01511, allocations: 217.3 kB / 0.6573 GB, free: 32.4 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.01518, allocations: 121.4 kB / 0.6574 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.01528, allocations: 88.38 kB / 0.6575 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 9.052e-05/0.01537, allocations: 0.5152 MB / 0.658 GB, free: 31.75 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.01561, allocations: 189.2 kB / 0.6582 GB, free: 31.62 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.01589, allocations: 321.4 kB / 0.6585 GB, free: 31.34 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006494/0.01653, allocations: 0.5605 MB / 0.659 GB, free: 30.9 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01654, allocations: 4.375 kB / 0.659 GB, free: 30.9 MB / 0.5262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006768/0.01721, allocations: 0.505 MB / 0.6595 GB, free: 30.61 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.01725, allocations: 66.34 kB / 0.6596 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.01726, allocations: 2.781 kB / 0.6596 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.01727, allocations: 5.656 kB / 0.6596 GB, free: 30.54 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003371/0.01761, allocations: 96.84 kB / 0.6597 GB, free: 30.53 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.01762, allocations: 8.969 kB / 0.6597 GB, free: 30.53 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.01782, allocations: 15.78 kB / 0.6597 GB, free: 30.53 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.01785, allocations: 21.42 kB / 0.6597 GB, free: 30.52 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 artery.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real tissueCompartment.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real RBC.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real RBC.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real RBC.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real RBC.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.RBC.Cmin,RBC.Cmin,$PRE.RBC.Cmax,RBC.Cmax,$PRE.RBC.rising,$PRE.singleDose.pulse.count,$PRE.singleDose.pulse.T_start,RBC.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.0002194/0.01807, allocations: 257.5 kB / 0.66 GB, free: 30.3 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.435e-05/0.01812, allocations: 38 kB / 0.66 GB, free: 30.28 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006089/0.01873, allocations: 373.2 kB / 0.6604 GB, free: 30.09 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.01874, allocations: 2.781 kB / 0.6604 GB, free: 30.09 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.01874, allocations: 1.406 kB / 0.6604 GB, free: 30.09 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.01875, allocations: 4.594 kB / 0.6604 GB, free: 30.09 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008954/0.01964, allocations: 0.7384 MB / 0.6611 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.01964, allocations: 0 / 0.6611 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.01992, allocations: 48.62 kB / 0.6612 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.01993, allocations: 1.438 kB / 0.6612 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.01996, allocations: 10.94 kB / 0.6612 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.01996, allocations: 1.406 kB / 0.6612 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01996, allocations: 1.438 kB / 0.6612 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.02078, allocations: 0.6532 MB / 0.6618 GB, free: 29.17 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.02083, allocations: 22.84 kB / 0.6618 GB, free: 29.16 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.822e-05/0.02087, allocations: 8.219 kB / 0.6618 GB, free: 29.15 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.02106, allocations: 21.42 kB / 0.6619 GB, free: 29.14 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.242e-05/0.02115, allocations: 24.28 kB / 0.6619 GB, free: 29.14 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.02117, allocations: 7 kB / 0.6619 GB, free: 29.14 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0001146/0.02129, allocations: 195.1 kB / 0.6621 GB, free: 29 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6e-08/0.02129, allocations: 2.531 kB / 0.6621 GB, free: 29 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0003427/0.02163, allocations: 81.59 kB / 0.6622 GB, free: 28.99 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,artery.M,artery.AUC,tissueCompartment.M,tissueCompartment.AUC,RBC.C,RBC.AUC) * Number of discrete variables: 8 ($whenCondition3,$whenCondition1,$whenCondition2,singleDose.pulse.T_start,singleDose.pulse.count,RBC.Cmax,RBC.Cmin,RBC.rising) * Number of discrete states: 6 (singleDose.pulse.count,RBC.Cmin,$whenCondition2,RBC.Cmax,$whenCondition1,RBC.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.0001132/0.02174, allocations: 107.7 kB / 0.6623 GB, free: 28.89 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0006526/0.0224, allocations: 490.5 kB / 0.6627 GB, free: 28.58 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.0224, allocations: 1.281 kB / 0.6627 GB, free: 28.58 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.02267, allocations: 221.2 kB / 0.6629 GB, free: 28.45 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.02316, allocations: 74.66 kB / 0.663 GB, free: 28.43 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.0244, allocations: 0.8235 MB / 0.6638 GB, free: 27.88 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.02453, allocations: 160.7 kB / 0.664 GB, free: 27.79 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001294/0.02466, allocations: 36.08 kB / 0.664 GB, free: 27.78 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.02476, allocations: 30.84 kB / 0.664 GB, free: 27.77 MB / 0.5262 GB Notification: Performance of SimCode: time 4.61e-07/0.02476, allocations: 3.938 kB / 0.664 GB, free: 27.77 MB / 0.5262 GB Notification: Performance of Templates: time 0.00849/0.03325, allocations: 4.037 MB / 0.668 GB, free: 27.41 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.407325027976185]