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.0009111/0.0009111, allocations: 84.53 kB / 19.93 MB, free: 4.609 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.0009122/0.0009122, allocations: 173.9 kB / 23.21 MB, free: 1.328 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.9241/0.9241, allocations: 177.1 MB / 203.5 MB, free: 5.754 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.655/1.655, allocations: 273.5 MB / 0.5209 GB, free: 14.98 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.SingleDoseDiffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion") translateModel(Pharmacolibrary.DevModels.SingleDoseDiffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.7558 GB, free: 10.72 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.875e-05/2.031e-05, allocations: 2.281 kB / 0.7558 GB, free: 10.72 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseDiffusion): time 0.002699/0.002719, allocations: 2.7 MB / 0.7584 GB, free: 8.043 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.003943, allocations: 0.7144 MB / 0.7591 GB, free: 7.332 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.984e-05/0.004033, allocations: 0 / 0.7591 GB, free: 7.332 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 7.207e-05/0.004105, allocations: 39.58 kB / 0.7591 GB, free: 7.293 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.004344, allocations: 123.4 kB / 0.7592 GB, free: 7.203 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002167/0.004561, allocations: 99.31 kB / 0.7593 GB, free: 7.109 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.004843, allocations: 406 kB / 0.7597 GB, free: 6.711 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002648/0.005108, allocations: 196 kB / 0.7599 GB, free: 6.523 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.005317, allocations: 235.6 kB / 0.7601 GB, free: 6.293 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.005513, allocations: 155.5 kB / 0.7603 GB, free: 6.141 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 4.875e-05/0.005562, allocations: 40 kB / 0.7603 GB, free: 6.102 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 4.238e-05/0.005604, allocations: 36 kB / 0.7604 GB, free: 6.066 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 5.345e-05/0.005658, allocations: 79.73 kB / 0.7604 GB, free: 5.988 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.005764, allocations: 131.7 kB / 0.7606 GB, free: 5.859 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002869/0.006051, allocations: 382.9 kB / 0.7609 GB, free: 5.484 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.006053, allocations: 0 / 0.7609 GB, free: 5.484 MB / 0.5887 GB Notification: Performance of FrontEnd: time 9.32e-07/0.006054, allocations: 0 / 0.7609 GB, free: 5.484 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.006059, allocations: 0 / 0.7609 GB, free: 5.484 MB / 0.5887 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.0007734/0.006833, allocations: 0.5764 MB / 0.7615 GB, free: 4.863 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.006871, allocations: 12.03 kB / 0.7615 GB, free: 4.852 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.572e-05/0.006936, allocations: 32.75 kB / 0.7615 GB, free: 4.82 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.007232, allocations: 232.1 kB / 0.7618 GB, free: 4.566 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.007249, allocations: 21.03 kB / 0.7618 GB, free: 4.547 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.007291, allocations: 28.38 kB / 0.7618 GB, free: 4.52 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/0.00772, allocations: 406.3 kB / 0.7622 GB, free: 4.098 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.007735, allocations: 7.938 kB / 0.7622 GB, free: 4.09 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.00776, allocations: 12 kB / 0.7622 GB, free: 4.078 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.007769, allocations: 8 kB / 0.7622 GB, free: 4.07 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003479/0.008117, allocations: 255.5 kB / 0.7625 GB, free: 3.816 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.009197, allocations: 0.7761 MB / 0.7632 GB, free: 3.004 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004674/0.009665, allocations: 241.2 kB / 0.7634 GB, free: 2.754 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.009821, allocations: 122.7 kB / 0.7636 GB, free: 2.625 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.009843, allocations: 4 kB / 0.7636 GB, free: 2.621 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/0.01014, allocations: 265.5 kB / 0.7638 GB, free: 2.332 MB / 0.5887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001147/0.01025, allocations: 43.81 kB / 0.7639 GB, free: 2.289 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.01025, allocations: 7.938 kB / 0.7639 GB, free: 2.281 MB / 0.5887 GB Notification: Performance of matching and sorting (n=31): time 0.001255/0.01151, allocations: 0.8812 MB / 0.7647 GB, free: 1.34 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.01157, allocations: 140.5 kB / 0.7649 GB, free: 1.172 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.01169, allocations: 195.2 kB / 0.765 GB, free: 0.9688 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.01171, allocations: 37.7 kB / 0.7651 GB, free: 0.9258 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.01179, allocations: 160.6 kB / 0.7652 GB, free: 0.7617 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 5.899e-05/0.01185, allocations: 115.2 kB / 0.7653 GB, free: 0.6484 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.369e-05/0.01192, allocations: 70.02 kB / 0.7654 GB, free: 0.5703 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0003558/0.01228, allocations: 330.8 kB / 0.7657 GB, free: 244 kB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.01246, allocations: 177.6 kB / 0.7659 GB, free: 48 kB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.01268, allocations: 283.5 kB / 0.7662 GB, free: 15.71 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008973/0.01358, allocations: 0.7333 MB / 0.7669 GB, free: 14.91 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.01358, allocations: 0 / 0.7669 GB, free: 14.91 MB / 0.6043 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004871/0.01407, allocations: 0.4974 MB / 0.7674 GB, free: 14.38 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.0141, allocations: 63.44 kB / 0.7674 GB, free: 14.31 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.01411, allocations: 0 / 0.7674 GB, free: 14.31 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.01412, allocations: 8 kB / 0.7674 GB, free: 14.3 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.01432, allocations: 91.81 kB / 0.7675 GB, free: 14.21 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.01432, allocations: 4 kB / 0.7675 GB, free: 14.21 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.01443, allocations: 23.98 kB / 0.7676 GB, free: 14.18 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.01445, allocations: 15.98 kB / 0.7676 GB, free: 14.17 MB / 0.6043 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.000184/0.01464, allocations: 205.9 kB / 0.7678 GB, free: 13.95 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.01466, allocations: 23.84 kB / 0.7678 GB, free: 13.93 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004387/0.0151, allocations: 389.5 kB / 0.7682 GB, free: 13.54 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.0151, allocations: 4 kB / 0.7682 GB, free: 13.54 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.01511, allocations: 0 / 0.7682 GB, free: 13.54 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.01511, allocations: 0 / 0.7682 GB, free: 13.54 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/0.01575, allocations: 0.6575 MB / 0.7688 GB, free: 12.83 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01575, allocations: 0 / 0.7688 GB, free: 12.83 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.01591, allocations: 55.89 kB / 0.7689 GB, free: 12.78 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.01591, allocations: 4 kB / 0.7689 GB, free: 12.77 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.01593, allocations: 11.94 kB / 0.7689 GB, free: 12.76 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.01593, allocations: 4 kB / 0.7689 GB, free: 12.76 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.01593, allocations: 0 / 0.7689 GB, free: 12.76 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005719/0.01651, allocations: 0.5994 MB / 0.7695 GB, free: 12.12 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.01652, allocations: 11.91 kB / 0.7695 GB, free: 12.11 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.01656, allocations: 12 kB / 0.7695 GB, free: 12.1 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.8e-05/0.01665, allocations: 19.97 kB / 0.7695 GB, free: 12.08 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/0.01671, allocations: 23.97 kB / 0.7695 GB, free: 12.05 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.01673, allocations: 11.98 kB / 0.7695 GB, free: 12.04 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 7.764e-05/0.01681, allocations: 143.2 kB / 0.7697 GB, free: 11.9 MB / 0.6043 GB Notification: Performance of sort global known variables: time 6e-08/0.01681, allocations: 0 / 0.7697 GB, free: 11.9 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0002198/0.01703, allocations: 80 kB / 0.7698 GB, free: 11.82 MB / 0.6043 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 8.969e-05/0.01712, allocations: 117.9 kB / 0.7699 GB, free: 11.7 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0004483/0.01757, allocations: 465.2 kB / 0.7703 GB, free: 11.21 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01757, allocations: 0 / 0.7703 GB, free: 11.21 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.01775, allocations: 212.4 kB / 0.7705 GB, free: 10.98 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.01805, allocations: 68.47 kB / 0.7706 GB, free: 10.92 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009659/0.01902, allocations: 0.8352 MB / 0.7714 GB, free: 10.07 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.78e-05/0.01912, allocations: 158.8 kB / 0.7715 GB, free: 9.891 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.011e-05/0.0192, allocations: 40.42 kB / 0.7716 GB, free: 9.852 MB / 0.6043 GB Notification: Performance of SimCode: time 7.71e-07/0.0192, allocations: 0 / 0.7716 GB, free: 9.852 MB / 0.6043 GB Notification: Performance of Templates: time 0.004126/0.02333, allocations: 3.761 MB / 0.7753 GB, free: 6.18 MB / 0.6043 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 > Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseDiffusion.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.770179683109745]