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.001127/0.001127, allocations: 73.88 kB / 20.65 MB, free: 3.844 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.001266/0.001266, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.061/1.061, allocations: 177.1 MB / 204.5 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.68/1.68, allocations: 273.5 MB / 0.522 GB, free: 14.72 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.382e-06/1.382e-06, allocations: 0 / 0.6482 GB, free: 38.54 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.141e-05/2.279e-05, allocations: 2.312 kB / 0.6482 GB, free: 38.54 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.002952/0.002974, allocations: 2.926 MB / 0.651 GB, free: 36.63 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.00414, allocations: 0.7431 MB / 0.6517 GB, free: 36.14 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.004274, allocations: 2.219 kB / 0.6517 GB, free: 36.14 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 7.168e-05/0.004346, allocations: 43.97 kB / 0.6518 GB, free: 36.12 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002483/0.004594, allocations: 120.5 kB / 0.6519 GB, free: 36.07 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.004816, allocations: 90.06 kB / 0.652 GB, free: 36.02 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003693/0.005185, allocations: 422.7 kB / 0.6524 GB, free: 35.8 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000347/0.005532, allocations: 220 kB / 0.6526 GB, free: 35.68 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002815/0.005814, allocations: 249.5 kB / 0.6528 GB, free: 35.58 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.006041, allocations: 145.3 kB / 0.653 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 5.284e-05/0.006094, allocations: 36.66 kB / 0.653 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.778e-05/0.006142, allocations: 34.66 kB / 0.653 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 6.845e-05/0.00621, allocations: 81.12 kB / 0.6531 GB, free: 35.48 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.006338, allocations: 132.8 kB / 0.6532 GB, free: 35.43 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.00668, allocations: 268.1 kB / 0.6535 GB, free: 35.3 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.006684, allocations: 0 / 0.6535 GB, free: 35.3 MB / 0.5262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.006686, allocations: 0 / 0.6535 GB, free: 35.3 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.006695, allocations: 1.438 kB / 0.6535 GB, free: 35.3 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.0009233/0.007618, allocations: 0.668 MB / 0.6542 GB, free: 34.73 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.00767, allocations: 9.406 kB / 0.6542 GB, free: 34.73 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.007772, allocations: 53.66 kB / 0.6542 GB, free: 34.71 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.008024, allocations: 211.1 kB / 0.6544 GB, free: 34.52 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.008073, allocations: 20.06 kB / 0.6544 GB, free: 34.51 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.252e-05/0.008126, allocations: 28.59 kB / 0.6545 GB, free: 34.5 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/0.00855, allocations: 346.9 kB / 0.6548 GB, free: 34.29 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.008572, allocations: 9.016 kB / 0.6548 GB, free: 34.28 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.0086, allocations: 10.69 kB / 0.6548 GB, free: 34.27 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.008619, allocations: 11.94 kB / 0.6548 GB, free: 34.27 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.008872, allocations: 139.9 kB / 0.655 GB, free: 34.23 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.009981, allocations: 0.7975 MB / 0.6557 GB, free: 33.67 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.01032, allocations: 165.7 kB / 0.6559 GB, free: 33.58 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.513e-05/0.01041, allocations: 79.62 kB / 0.656 GB, free: 33.54 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.01044, allocations: 10.31 kB / 0.656 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.01073, allocations: 222 kB / 0.6562 GB, free: 33.37 MB / 0.5262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001799/0.01091, allocations: 43.97 kB / 0.6562 GB, free: 33.35 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=30): time 2.554e-06/0.01092, allocations: 0 / 0.6562 GB, free: 33.35 MB / 0.5262 GB Notification: Performance of matching and sorting (n=31): time 0.001242/0.01216, allocations: 0.6705 MB / 0.6569 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.0122, allocations: 142.2 kB / 0.657 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.01232, allocations: 239.5 kB / 0.6573 GB, free: 32.57 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.01234, allocations: 37.02 kB / 0.6573 GB, free: 32.54 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 7.053e-05/0.01241, allocations: 206.3 kB / 0.6575 GB, free: 32.35 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 5.513e-05/0.01247, allocations: 111.5 kB / 0.6576 GB, free: 32.26 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.287e-05/0.01255, allocations: 79.28 kB / 0.6577 GB, free: 32.21 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 7.603e-05/0.01263, allocations: 0.5088 MB / 0.6582 GB, free: 31.7 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.01273, allocations: 119.6 kB / 0.6583 GB, free: 31.62 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.01285, allocations: 264.8 kB / 0.6585 GB, free: 31.35 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.01313, allocations: 421.3 kB / 0.6589 GB, free: 30.99 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.01313, allocations: 3.562 kB / 0.6589 GB, free: 30.99 MB / 0.5262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003644/0.0135, allocations: 397.8 kB / 0.6593 GB, free: 30.75 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/0.01355, allocations: 67.92 kB / 0.6594 GB, free: 30.69 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.01356, allocations: 2.844 kB / 0.6594 GB, free: 30.69 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.01357, allocations: 7.312 kB / 0.6594 GB, free: 30.69 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.01383, allocations: 93.22 kB / 0.6595 GB, free: 30.68 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.01384, allocations: 12.11 kB / 0.6595 GB, free: 30.67 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.01395, allocations: 13.94 kB / 0.6595 GB, free: 30.67 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.01397, allocations: 21.16 kB / 0.6595 GB, free: 30.66 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.0002234/0.0142, allocations: 242.9 kB / 0.6598 GB, free: 30.45 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.321e-05/0.01425, allocations: 38.17 kB / 0.6598 GB, free: 30.43 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003499/0.0146, allocations: 294.1 kB / 0.6601 GB, free: 30.27 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.01462, allocations: 6.281 kB / 0.6601 GB, free: 30.27 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.01462, allocations: 1.406 kB / 0.6601 GB, free: 30.27 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.01462, allocations: 0 / 0.6601 GB, free: 30.27 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005559/0.01518, allocations: 0.5813 MB / 0.6606 GB, free: 29.86 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.01518, allocations: 1.438 kB / 0.6606 GB, free: 29.86 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.01537, allocations: 48.7 kB / 0.6607 GB, free: 29.86 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.01538, allocations: 1.406 kB / 0.6607 GB, free: 29.86 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.0154, allocations: 11.47 kB / 0.6607 GB, free: 29.85 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.0154, allocations: 1.406 kB / 0.6607 GB, free: 29.85 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.0154, allocations: 0 / 0.6607 GB, free: 29.85 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.01586, allocations: 0.514 MB / 0.6612 GB, free: 29.5 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.724e-05/0.01589, allocations: 17.47 kB / 0.6612 GB, free: 29.49 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.01592, allocations: 12.97 kB / 0.6612 GB, free: 29.48 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.01603, allocations: 13.75 kB / 0.6613 GB, free: 29.48 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.01609, allocations: 23.55 kB / 0.6613 GB, free: 29.48 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.0161, allocations: 13.11 kB / 0.6613 GB, free: 29.47 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 7.477e-05/0.01618, allocations: 171.2 kB / 0.6615 GB, free: 29.34 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6e-08/0.01618, allocations: 0.9688 kB / 0.6615 GB, free: 29.34 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002813/0.01646, allocations: 83.3 kB / 0.6615 GB, free: 29.34 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.0001458/0.01661, allocations: 110.3 kB / 0.6616 GB, free: 29.24 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003716/0.01698, allocations: 376 kB / 0.662 GB, free: 28.98 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.01698, allocations: 0 / 0.662 GB, free: 28.98 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.01713, allocations: 172.9 kB / 0.6622 GB, free: 28.86 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.01749, allocations: 80.2 kB / 0.6622 GB, free: 28.84 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.01905, allocations: 0.8675 MB / 0.6631 GB, free: 28.28 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.333e-05/0.0191, allocations: 95.52 kB / 0.6632 GB, free: 28.2 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001279/0.01923, allocations: 38.3 kB / 0.6632 GB, free: 28.19 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.01943, allocations: 156 kB / 0.6634 GB, free: 28.12 MB / 0.5262 GB Notification: Performance of SimCode: time 9.12e-07/0.01943, allocations: 0 / 0.6634 GB, free: 28.12 MB / 0.5262 GB Notification: Performance of Templates: time 0.00785/0.02728, allocations: 4.643 MB / 0.6679 GB, free: 27.69 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.5279686390422285]