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.002591/0.002591, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.006219/0.006219, allocations: 165.9 kB / 22.45 MB, free: 2.105 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.733/1.733, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.651/3.651, allocations: 274 MB / 0.5207 GB, free: 14.9 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.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 2.595e-06/2.595e-06, allocations: 0 / 0.7563 GB, free: 9.969 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.575e-05/3.834e-05, allocations: 6.219 kB / 0.7563 GB, free: 9.961 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.004937/0.004975, allocations: 2.735 MB / 0.7589 GB, free: 7.25 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.006644, allocations: 0.7109 MB / 0.7596 GB, free: 6.543 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.006776, allocations: 4 kB / 0.7596 GB, free: 6.539 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.006903, allocations: 47.56 kB / 0.7597 GB, free: 6.492 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0003382/0.007242, allocations: 119.5 kB / 0.7598 GB, free: 6.391 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000308/0.00755, allocations: 91.75 kB / 0.7599 GB, free: 6.301 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0005268/0.008076, allocations: 418 kB / 0.7603 GB, free: 5.891 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004103/0.008487, allocations: 200 kB / 0.7605 GB, free: 5.699 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003828/0.008869, allocations: 247.5 kB / 0.7607 GB, free: 5.457 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003114/0.009181, allocations: 155.6 kB / 0.7609 GB, free: 5.305 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 7.676e-05/0.009258, allocations: 36 kB / 0.7609 GB, free: 5.27 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.766e-05/0.009335, allocations: 36 kB / 0.7609 GB, free: 5.234 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.009439, allocations: 79.72 kB / 0.761 GB, free: 5.156 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.009641, allocations: 131.7 kB / 0.7611 GB, free: 5.027 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0005356/0.01018, allocations: 390.9 kB / 0.7615 GB, free: 4.645 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.01018, allocations: 0 / 0.7615 GB, free: 4.645 MB / 0.5887 GB Notification: Performance of FrontEnd: time 1.563e-06/0.01018, allocations: 0 / 0.7615 GB, free: 4.645 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.01019, allocations: 4 kB / 0.7615 GB, free: 4.641 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.001325/0.01152, allocations: 0.5763 MB / 0.7621 GB, free: 4.02 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.01157, allocations: 12.03 kB / 0.7621 GB, free: 4.008 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.292e-05/0.01166, allocations: 32.75 kB / 0.7621 GB, free: 3.977 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005168/0.01217, allocations: 226 kB / 0.7623 GB, free: 3.727 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.01221, allocations: 25.03 kB / 0.7623 GB, free: 3.703 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.246e-05/0.01228, allocations: 32.33 kB / 0.7624 GB, free: 3.672 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007679/0.01305, allocations: 414.2 kB / 0.7628 GB, free: 3.242 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.01308, allocations: 7.406 kB / 0.7628 GB, free: 3.238 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.314e-05/0.01311, allocations: 12 kB / 0.7628 GB, free: 3.227 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.01312, allocations: 8 kB / 0.7628 GB, free: 3.219 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006732/0.01379, allocations: 271.5 kB / 0.7631 GB, free: 2.949 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.01558, allocations: 0.7877 MB / 0.7638 GB, free: 2.125 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008075/0.01639, allocations: 252.6 kB / 0.7641 GB, free: 1.859 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003101/0.0167, allocations: 130.7 kB / 0.7642 GB, free: 1.723 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.01673, allocations: 7.938 kB / 0.7642 GB, free: 1.715 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005325/0.01727, allocations: 265.5 kB / 0.7644 GB, free: 1.426 MB / 0.5887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002365/0.0175, allocations: 39.86 kB / 0.7645 GB, free: 1.387 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.0175, allocations: 0 / 0.7645 GB, free: 1.387 MB / 0.5887 GB Notification: Performance of matching and sorting (n=31): time 0.002349/0.01985, allocations: 0.9094 MB / 0.7654 GB, free: 432 kB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.01998, allocations: 136.5 kB / 0.7655 GB, free: 264 kB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.02023, allocations: 203.7 kB / 0.7657 GB, free: 52 kB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 4.146e-05/0.02027, allocations: 33.7 kB / 0.7657 GB, free: 12 kB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.02044, allocations: 160.6 kB / 0.7659 GB, free: 15.85 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.02056, allocations: 123.1 kB / 0.766 GB, free: 15.73 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.0207, allocations: 66.02 kB / 0.7661 GB, free: 15.65 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.0001879/0.02088, allocations: 334.8 kB / 0.7664 GB, free: 15.32 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003603/0.02125, allocations: 181.7 kB / 0.7666 GB, free: 15.12 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004564/0.0217, allocations: 291.4 kB / 0.7668 GB, free: 14.78 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.02353, allocations: 0.7414 MB / 0.7676 GB, free: 13.96 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.02353, allocations: 0 / 0.7676 GB, free: 13.96 MB / 0.6043 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009921/0.02452, allocations: 0.5052 MB / 0.7681 GB, free: 13.43 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 8.597e-05/0.02461, allocations: 63.39 kB / 0.7681 GB, free: 13.35 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.02462, allocations: 0 / 0.7681 GB, free: 13.35 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.676e-05/0.02464, allocations: 8 kB / 0.7681 GB, free: 13.34 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.02504, allocations: 87.88 kB / 0.7682 GB, free: 13.26 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.02506, allocations: 4 kB / 0.7682 GB, free: 13.25 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.0253, allocations: 19.98 kB / 0.7682 GB, free: 13.23 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.02534, allocations: 23.98 kB / 0.7683 GB, free: 13.21 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.0003567/0.02569, allocations: 223.4 kB / 0.7685 GB, free: 12.98 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.179e-05/0.02575, allocations: 27.84 kB / 0.7685 GB, free: 12.96 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008592/0.0266, allocations: 387.2 kB / 0.7689 GB, free: 12.57 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.02661, allocations: 0 / 0.7689 GB, free: 12.57 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.02661, allocations: 0 / 0.7689 GB, free: 12.57 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.02662, allocations: 3.328 kB / 0.7689 GB, free: 12.57 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.02784, allocations: 0.6619 MB / 0.7695 GB, free: 11.86 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.02785, allocations: 0 / 0.7695 GB, free: 11.86 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003326/0.02818, allocations: 59.89 kB / 0.7696 GB, free: 11.8 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.02818, allocations: 0 / 0.7696 GB, free: 11.8 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.02821, allocations: 8 kB / 0.7696 GB, free: 11.79 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.02822, allocations: 4 kB / 0.7696 GB, free: 11.79 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.02822, allocations: 3.984 kB / 0.7696 GB, free: 11.78 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.0294, allocations: 0.6104 MB / 0.7702 GB, free: 11.14 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-05/0.02944, allocations: 19.86 kB / 0.7702 GB, free: 11.12 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.02949, allocations: 8 kB / 0.7702 GB, free: 11.11 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.02971, allocations: 15.98 kB / 0.7702 GB, free: 11.09 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.55e-05/0.0298, allocations: 23.95 kB / 0.7702 GB, free: 11.07 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.02983, allocations: 12 kB / 0.7703 GB, free: 11.06 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.0001662/0.03, allocations: 150.9 kB / 0.7704 GB, free: 10.91 MB / 0.6043 GB Notification: Performance of sort global known variables: time 8e-08/0.03, allocations: 0 / 0.7704 GB, free: 10.91 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0004032/0.0304, allocations: 83.94 kB / 0.7705 GB, free: 10.83 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 0.0001742/0.03057, allocations: 114.2 kB / 0.7706 GB, free: 10.71 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0008924/0.03147, allocations: 468 kB / 0.771 GB, free: 10.21 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.03147, allocations: 0 / 0.771 GB, free: 10.21 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0003819/0.03185, allocations: 212.9 kB / 0.7712 GB, free: 9.988 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/0.03241, allocations: 79.97 kB / 0.7713 GB, free: 9.91 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.03421, allocations: 0.8188 MB / 0.7721 GB, free: 9.078 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.0344, allocations: 159.5 kB / 0.7723 GB, free: 8.902 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 0.0001667/0.03457, allocations: 33.61 kB / 0.7723 GB, free: 8.871 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.03467, allocations: 36.48 kB / 0.7723 GB, free: 8.836 MB / 0.6043 GB Notification: Performance of SimCode: time 1.463e-06/0.03467, allocations: 0 / 0.7723 GB, free: 8.836 MB / 0.6043 GB Notification: Performance of Templates: time 0.009932/0.04461, allocations: 4.161 MB / 0.7764 GB, free: 4.883 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 10.483493044041097]