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.001161/0.001161, allocations: 108.3 kB / 19.71 MB, free: 436 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.001221/0.001221, allocations: 212.9 kB / 23 MB, free: 2.957 MB / 13.93 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.107/1.107, allocations: 230.6 MB / 256.8 MB, free: 9.582 MB / 202.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.836/1.836, allocations: 334.2 MB / 0.6323 GB, free: 7.957 MB / 442.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: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 69.28 kB / 0.867 GB, free: 8.137 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1993, allocations: 112.8 MB / 0.9772 GB, free: 7.047 MB / 0.6824 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.003489/0.2028, allocations: 2.718 MB / 0.9798 GB, free: 4.312 MB / 0.6824 GB Notification: Performance of NFInst.instExpressions: time 0.001379/0.2042, allocations: 0.7051 MB / 0.9805 GB, free: 3.605 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2043, allocations: 4 kB / 0.9805 GB, free: 3.602 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 7.678e-05/0.2044, allocations: 47.56 kB / 0.9806 GB, free: 3.555 MB / 0.6824 GB Notification: Performance of NFTyping.typeBindings: time 0.0002637/0.2047, allocations: 107 kB / 0.9807 GB, free: 3.449 MB / 0.6824 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.2049, allocations: 99.83 kB / 0.9808 GB, free: 3.352 MB / 0.6824 GB Notification: Performance of NFFlatten.flatten: time 0.000293/0.2052, allocations: 394.3 kB / 0.9812 GB, free: 2.965 MB / 0.6824 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.2055, allocations: 206.1 kB / 0.9814 GB, free: 2.766 MB / 0.6824 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.2057, allocations: 167.5 kB / 0.9815 GB, free: 2.602 MB / 0.6824 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.2059, allocations: 167.3 kB / 0.9817 GB, free: 2.438 MB / 0.6824 GB Notification: Performance of NFPackage.collectConstants: time 4.281e-05/0.2059, allocations: 36 kB / 0.9817 GB, free: 2.402 MB / 0.6824 GB Notification: Performance of NFFlatten.collectFunctions: time 4.216e-05/0.2059, allocations: 40 kB / 0.9817 GB, free: 2.363 MB / 0.6824 GB Notification: Performance of NFScalarize.scalarize: time 5.553e-05/0.206, allocations: 87.67 kB / 0.9818 GB, free: 2.277 MB / 0.6824 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.2061, allocations: 147.4 kB / 0.982 GB, free: 2.133 MB / 0.6824 GB Notification: Performance of NFConvertDAE.convert: time 0.0003062/0.2064, allocations: 366.7 kB / 0.9823 GB, free: 1.773 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2064, allocations: 0 / 0.9823 GB, free: 1.773 MB / 0.6824 GB Notification: Performance of FrontEnd: time 2.996e-06/0.2064, allocations: 0 / 0.9823 GB, free: 1.773 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2064, allocations: 0 / 0.9823 GB, free: 1.773 MB / 0.6824 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.0008713/0.2073, allocations: 0.5904 MB / 0.9829 GB, free: 1.145 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2074, allocations: 12.03 kB / 0.9829 GB, free: 1.133 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.757e-05/0.2074, allocations: 36.7 kB / 0.9829 GB, free: 1.098 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.2078, allocations: 233 kB / 0.9832 GB, free: 0.8438 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.2078, allocations: 21.03 kB / 0.9832 GB, free: 0.8242 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.2079, allocations: 40.08 kB / 0.9832 GB, free: 0.7852 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.2083, allocations: 405.8 kB / 0.9836 GB, free: 372 kB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.2083, allocations: 4 kB / 0.9836 GB, free: 368 kB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/0.2084, allocations: 12 kB / 0.9836 GB, free: 356 kB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.2084, allocations: 8 kB / 0.9836 GB, free: 348 kB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003602/0.2087, allocations: 275.4 kB / 0.9839 GB, free: 68 kB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.2098, allocations: 0.7881 MB / 0.9847 GB, free: 15.24 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004397/0.2102, allocations: 256.6 kB / 0.9849 GB, free: 14.97 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2104, allocations: 133.5 kB / 0.985 GB, free: 14.84 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.2104, allocations: 4 kB / 0.985 GB, free: 14.83 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.2107, allocations: 273.5 kB / 0.9853 GB, free: 14.54 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001212/0.2108, allocations: 39.83 kB / 0.9853 GB, free: 14.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=30): time 2.365e-06/0.2108, allocations: 0 / 0.9853 GB, free: 14.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=31): time 0.001249/0.2121, allocations: 0.9047 MB / 0.9862 GB, free: 13.53 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/0.2121, allocations: 144.5 kB / 0.9864 GB, free: 13.36 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.2123, allocations: 194.3 kB / 0.9865 GB, free: 13.16 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.2123, allocations: 29.7 kB / 0.9866 GB, free: 13.12 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.505e-05/0.2123, allocations: 172.6 kB / 0.9867 GB, free: 12.95 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.428e-05/0.2124, allocations: 107.1 kB / 0.9868 GB, free: 12.84 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/0.2125, allocations: 70 kB / 0.9869 GB, free: 12.77 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0003391/0.2128, allocations: 334.8 kB / 0.9872 GB, free: 12.43 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.213, allocations: 189.5 kB / 0.9874 GB, free: 12.23 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.2132, allocations: 283.1 kB / 0.9877 GB, free: 11.88 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009358/0.2142, allocations: 0.7467 MB / 0.9884 GB, free: 11.06 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2142, allocations: 0 / 0.9884 GB, free: 11.06 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005226/0.2147, allocations: 0.5011 MB / 0.9889 GB, free: 10.53 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.2147, allocations: 63.39 kB / 0.989 GB, free: 10.45 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2147, allocations: 4 kB / 0.989 GB, free: 10.45 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2148, allocations: 4.344 kB / 0.989 GB, free: 10.45 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.215, allocations: 99.81 kB / 0.9891 GB, free: 10.35 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.215, allocations: 7.984 kB / 0.9891 GB, free: 10.34 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2151, allocations: 19.98 kB / 0.9891 GB, free: 10.32 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.2151, allocations: 19.98 kB / 0.9891 GB, free: 10.3 MB / 0.698 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.0001938/0.2153, allocations: 226.6 kB / 0.9893 GB, free: 10.07 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.2153, allocations: 19.86 kB / 0.9893 GB, free: 10.05 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000452/0.2158, allocations: 383.5 kB / 0.9897 GB, free: 9.656 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.2158, allocations: 4 kB / 0.9897 GB, free: 9.652 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2158, allocations: 0 / 0.9897 GB, free: 9.652 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.2158, allocations: 0 / 0.9897 GB, free: 9.652 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006298/0.2164, allocations: 0.6574 MB / 0.9904 GB, free: 8.949 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2164, allocations: 0 / 0.9904 GB, free: 8.949 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.2166, allocations: 55.95 kB / 0.9904 GB, free: 8.895 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.319e-06/0.2166, allocations: 4 kB / 0.9904 GB, free: 8.891 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.2166, allocations: 16 kB / 0.9904 GB, free: 8.875 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2166, allocations: 0 / 0.9904 GB, free: 8.875 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.2166, allocations: 3.938 kB / 0.9904 GB, free: 8.871 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005829/0.2172, allocations: 0.6071 MB / 0.991 GB, free: 8.23 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.224e-05/0.2172, allocations: 19.84 kB / 0.991 GB, free: 8.211 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.319e-05/0.2172, allocations: 12 kB / 0.9911 GB, free: 8.199 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.2174, allocations: 27.86 kB / 0.9911 GB, free: 8.172 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.404e-05/0.2174, allocations: 23.95 kB / 0.9911 GB, free: 8.148 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.2174, allocations: 8 kB / 0.9911 GB, free: 8.141 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.407/0.6244, allocations: 143.5 kB / 0.9912 GB, free: 26.59 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.01e-07/0.6244, allocations: 0 / 0.9912 GB, free: 26.59 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000423/0.6249, allocations: 82.41 kB / 0.9913 GB, free: 26.59 MB / 0.698 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.0001204/0.625, allocations: 114.5 kB / 0.9914 GB, free: 26.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005859/0.6256, allocations: 470.1 kB / 0.9919 GB, free: 26.28 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.6256, allocations: 0 / 0.9919 GB, free: 26.28 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.6258, allocations: 212.8 kB / 0.9921 GB, free: 26.18 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.6261, allocations: 68.5 kB / 0.9922 GB, free: 26.18 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.6273, allocations: 1.05 MB / 0.9932 GB, free: 25.62 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.75e-05/0.6274, allocations: 160.9 kB / 0.9933 GB, free: 25.54 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.862e-05/0.6275, allocations: 34.11 kB / 0.9934 GB, free: 25.53 MB / 0.698 GB Notification: Performance of SimCode: time 8.71e-07/0.6275, allocations: 0 / 0.9934 GB, free: 25.53 MB / 0.698 GB Notification: Performance of Templates: time 0.005263/0.6328, allocations: 3.852 MB / 0.9971 GB, free: 25.2 MB / 0.698 GB " [Timeout remaining time 659] 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: 7.8611779059283435]