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.0009936/0.0009936, 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.001422/0.001422, 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.919/0.919, allocations: 177.2 MB / 203.5 MB, free: 5.59 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.712/1.712, allocations: 273.5 MB / 0.5209 GB, free: 14.99 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=498,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen") translateModel(Pharmacolibrary.DevModels.SingleDoseLumen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=498,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 0.7558 GB, free: 10.71 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.282e-05/2.462e-05, allocations: 4.953 kB / 0.7558 GB, free: 10.7 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.00291/0.002934, allocations: 2.732 MB / 0.7584 GB, free: 7.992 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.003979, allocations: 0.7218 MB / 0.7591 GB, free: 7.277 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.00409, allocations: 8 kB / 0.7591 GB, free: 7.27 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 9e-05/0.00418, allocations: 35.62 kB / 0.7592 GB, free: 7.234 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002938/0.004474, allocations: 120.4 kB / 0.7593 GB, free: 7.145 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.004722, allocations: 91.75 kB / 0.7594 GB, free: 7.055 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0003289/0.005051, allocations: 418 kB / 0.7598 GB, free: 6.645 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.005352, allocations: 200 kB / 0.76 GB, free: 6.453 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005647/0.005917, allocations: 243.5 kB / 0.7602 GB, free: 6.215 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.006092, allocations: 159.5 kB / 0.7604 GB, free: 6.059 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 4.362e-05/0.006136, allocations: 36 kB / 0.7604 GB, free: 6.023 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 4.047e-05/0.006177, allocations: 36 kB / 0.7604 GB, free: 5.988 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 4.995e-05/0.006226, allocations: 79.73 kB / 0.7605 GB, free: 5.91 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.006332, allocations: 135.7 kB / 0.7606 GB, free: 5.777 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.006622, allocations: 390.9 kB / 0.761 GB, free: 5.395 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.006624, allocations: 0 / 0.761 GB, free: 5.395 MB / 0.5887 GB Notification: Performance of FrontEnd: time 7.41e-07/0.006625, allocations: 4 kB / 0.761 GB, free: 5.391 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.00663, allocations: 0 / 0.761 GB, free: 5.391 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.0008381/0.007468, allocations: 0.5724 MB / 0.7616 GB, free: 4.773 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.007515, allocations: 12.03 kB / 0.7616 GB, free: 4.762 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.404e-05/0.007589, allocations: 40.73 kB / 0.7616 GB, free: 4.723 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.007906, allocations: 225.9 kB / 0.7618 GB, free: 4.473 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.007933, allocations: 25.03 kB / 0.7619 GB, free: 4.449 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.007982, allocations: 32.33 kB / 0.7619 GB, free: 4.418 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004608/0.008443, allocations: 410.3 kB / 0.7623 GB, free: 3.992 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.008462, allocations: 7.938 kB / 0.7623 GB, free: 3.984 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.008488, allocations: 8 kB / 0.7623 GB, free: 3.977 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.008497, allocations: 8 kB / 0.7623 GB, free: 3.969 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.008866, allocations: 275.5 kB / 0.7626 GB, free: 3.695 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.009941, allocations: 0.78 MB / 0.7633 GB, free: 2.879 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004796/0.01042, allocations: 252.5 kB / 0.7636 GB, free: 2.613 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.01058, allocations: 130.7 kB / 0.7637 GB, free: 2.477 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.01061, allocations: 4 kB / 0.7637 GB, free: 2.473 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/0.01091, allocations: 269.5 kB / 0.764 GB, free: 2.18 MB / 0.5887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001146/0.01102, allocations: 35.88 kB / 0.764 GB, free: 2.145 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=30): time 1.904e-06/0.01102, allocations: 0 / 0.764 GB, free: 2.145 MB / 0.5887 GB Notification: Performance of matching and sorting (n=31): time 0.001224/0.01225, allocations: 0.9171 MB / 0.7649 GB, free: 1.172 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.0123, allocations: 136.5 kB / 0.765 GB, free: 1.008 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.01244, allocations: 199.8 kB / 0.7652 GB, free: 0.8047 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.01246, allocations: 33.7 kB / 0.7652 GB, free: 0.7656 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 7.14e-05/0.01253, allocations: 168.7 kB / 0.7654 GB, free: 0.5938 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 5.499e-05/0.01259, allocations: 111.1 kB / 0.7655 GB, free: 496 kB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.293e-05/0.01266, allocations: 70.02 kB / 0.7656 GB, free: 416 kB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 8.024e-05/0.01274, allocations: 334.8 kB / 0.7659 GB, free: 72 kB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.01294, allocations: 185.7 kB / 0.7661 GB, free: 15.87 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.01316, allocations: 283.5 kB / 0.7663 GB, free: 15.53 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.01443, allocations: 0.7529 MB / 0.7671 GB, free: 14.71 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01444, allocations: 4 kB / 0.7671 GB, free: 14.7 MB / 0.6043 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004984/0.01493, allocations: 0.5051 MB / 0.7676 GB, free: 14.17 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.01497, allocations: 59.41 kB / 0.7676 GB, free: 14.1 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.01497, allocations: 0 / 0.7676 GB, free: 14.1 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.01499, allocations: 8 kB / 0.7676 GB, free: 14.09 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.01518, allocations: 87.88 kB / 0.7677 GB, free: 14 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.01519, allocations: 11.92 kB / 0.7677 GB, free: 13.99 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.01531, allocations: 19.98 kB / 0.7677 GB, free: 13.97 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.01533, allocations: 24.25 kB / 0.7678 GB, free: 13.95 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 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.0001646/0.01549, allocations: 201.4 kB / 0.768 GB, free: 13.74 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.01552, allocations: 27.84 kB / 0.768 GB, free: 13.71 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004502/0.01597, allocations: 390.4 kB / 0.7684 GB, free: 13.32 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.01597, allocations: 0 / 0.7684 GB, free: 13.32 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.01597, allocations: 0 / 0.7684 GB, free: 13.32 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.01598, allocations: 7.984 kB / 0.7684 GB, free: 13.31 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006266/0.01661, allocations: 0.6579 MB / 0.769 GB, free: 12.61 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.01661, allocations: 3.938 kB / 0.769 GB, free: 12.61 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.01678, allocations: 55.91 kB / 0.7691 GB, free: 12.55 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.01678, allocations: 3.938 kB / 0.7691 GB, free: 12.55 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.0168, allocations: 11.98 kB / 0.7691 GB, free: 12.54 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.0168, allocations: 4 kB / 0.7691 GB, free: 12.53 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.0168, allocations: 0 / 0.7691 GB, free: 12.53 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000587/0.01739, allocations: 0.6109 MB / 0.7697 GB, free: 11.89 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 2.159e-05/0.01741, allocations: 19.86 kB / 0.7697 GB, free: 11.87 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.01744, allocations: 8 kB / 0.7697 GB, free: 11.86 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.01754, allocations: 19.97 kB / 0.7697 GB, free: 11.84 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.01761, allocations: 23.91 kB / 0.7698 GB, free: 11.82 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.01763, allocations: 15.98 kB / 0.7698 GB, free: 11.8 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 8.304e-05/0.01771, allocations: 150.9 kB / 0.7699 GB, free: 11.65 MB / 0.6043 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01771, allocations: 0 / 0.7699 GB, free: 11.65 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0002168/0.01793, allocations: 80 kB / 0.77 GB, free: 11.57 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,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 8.333e-05/0.01801, allocations: 105.9 kB / 0.7701 GB, free: 11.46 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0004485/0.01846, allocations: 472 kB / 0.7705 GB, free: 10.96 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01846, allocations: 0.6875 kB / 0.7705 GB, free: 10.96 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0001887/0.01865, allocations: 216.2 kB / 0.7707 GB, free: 10.73 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.01895, allocations: 77.78 kB / 0.7708 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009506/0.0199, allocations: 0.8549 MB / 0.7717 GB, free: 9.789 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.358e-05/0.01999, allocations: 159.5 kB / 0.7718 GB, free: 9.613 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.408e-05/0.02007, allocations: 32.5 kB / 0.7718 GB, free: 9.582 MB / 0.6043 GB Notification: Performance of SimCode: time 6.11e-07/0.02007, allocations: 0 / 0.7718 GB, free: 9.582 MB / 0.6043 GB Notification: Performance of Templates: time 0.003925/0.02399, allocations: 3.867 MB / 0.7756 GB, free: 5.793 MB / 0.6043 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.545054392889142]