Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.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.001938/0.001938, allocations: 84.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.002897/0.002897, allocations: 169.9 kB / 22.46 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.576/1.576, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 1.314/1.314, allocations: 292.9 MB / 0.5392 GB, free: 49.81 MB / 410.7 MB " [Timeout remaining time 178] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.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.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot") translateModel(Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 0.6998 GB, free: 8.605 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.306e-05/3.429e-05, allocations: 2.281 kB / 0.6998 GB, free: 8.602 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot): time 0.003454/0.003488, allocations: 2.991 MB / 0.7028 GB, free: 5.594 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.004579, allocations: 0.6935 MB / 0.7034 GB, free: 4.898 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.004711, allocations: 8 kB / 0.7035 GB, free: 4.891 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.004849, allocations: 43.56 kB / 0.7035 GB, free: 4.848 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002558/0.005105, allocations: 130.9 kB / 0.7036 GB, free: 4.719 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.005345, allocations: 83.83 kB / 0.7037 GB, free: 4.637 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.005679, allocations: 429.9 kB / 0.7041 GB, free: 4.215 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.005843, allocations: 53.64 kB / 0.7042 GB, free: 4.164 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.006052, allocations: 231.4 kB / 0.7044 GB, free: 3.938 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.006288, allocations: 123.6 kB / 0.7045 GB, free: 3.816 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 4.137e-05/0.006329, allocations: 32 kB / 0.7045 GB, free: 3.785 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.849e-05/0.006388, allocations: 32 kB / 0.7046 GB, free: 3.754 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.006432, allocations: 63.75 kB / 0.7046 GB, free: 3.691 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.006554, allocations: 127.7 kB / 0.7047 GB, free: 3.566 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.006861, allocations: 362.9 kB / 0.7051 GB, free: 3.211 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.006865, allocations: 0 / 0.7051 GB, free: 3.211 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.473e-06/0.006867, allocations: 0 / 0.7051 GB, free: 3.211 MB / 410.8 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.006873, allocations: 0 / 0.7051 GB, free: 3.211 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009129/0.007786, allocations: 0.6077 MB / 0.7057 GB, free: 2.555 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.007823, allocations: 12.03 kB / 0.7057 GB, free: 2.543 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.505e-05/0.007898, allocations: 32.75 kB / 0.7057 GB, free: 2.512 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.00815, allocations: 224.7 kB / 0.7059 GB, free: 2.27 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.008171, allocations: 12.88 kB / 0.706 GB, free: 2.258 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.008219, allocations: 28.31 kB / 0.706 GB, free: 2.23 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.008673, allocations: 310.2 kB / 0.7063 GB, free: 1.898 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.008692, allocations: 4 kB / 0.7063 GB, free: 1.895 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.00872, allocations: 15.98 kB / 0.7063 GB, free: 1.879 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.008726, allocations: 4 kB / 0.7063 GB, free: 1.875 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004268/0.009153, allocations: 248.2 kB / 0.7065 GB, free: 1.621 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009223/0.01008, allocations: 0.6465 MB / 0.7072 GB, free: 0.9375 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.01064, allocations: 282 kB / 0.7074 GB, free: 0.6406 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.01087, allocations: 160.4 kB / 0.7076 GB, free: 480 kB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.01088, allocations: 4 kB / 0.7076 GB, free: 476 kB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004127/0.01129, allocations: 367.4 kB / 0.7079 GB, free: 56 kB / 410.8 MB Notification: Performance of pre-optimization done (n=33): time 1.854e-06/0.0113, allocations: 0 / 0.7079 GB, free: 56 kB / 410.8 MB Notification: Performance of matching and sorting (n=35): time 0.002441/0.01374, allocations: 1.129 MB / 0.709 GB, free: 14.83 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/0.01392, allocations: 217.6 kB / 0.7093 GB, free: 14.57 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.01424, allocations: 253.8 kB / 0.7095 GB, free: 14.31 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.01428, allocations: 33.7 kB / 0.7095 GB, free: 14.27 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.01443, allocations: 152.9 kB / 0.7097 GB, free: 14.12 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.01455, allocations: 123 kB / 0.7098 GB, free: 14 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.01469, allocations: 70.2 kB / 0.7099 GB, free: 13.93 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.01489, allocations: 346.7 kB / 0.7102 GB, free: 13.58 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.01528, allocations: 219.8 kB / 0.7104 GB, free: 13.34 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004808/0.01576, allocations: 326.9 kB / 0.7107 GB, free: 12.96 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007498/0.01651, allocations: 458.1 kB / 0.7111 GB, free: 12.44 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01652, allocations: 0 / 0.7111 GB, free: 12.44 MB / 426.8 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00102/0.01754, allocations: 0.5769 MB / 0.7117 GB, free: 11.82 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.649e-05/0.01763, allocations: 100.3 kB / 0.7118 GB, free: 11.71 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.01764, allocations: 4 kB / 0.7118 GB, free: 11.7 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.01767, allocations: 4 kB / 0.7118 GB, free: 11.7 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.01801, allocations: 79.89 kB / 0.7119 GB, free: 11.62 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.526e-05/0.01802, allocations: 8.281 kB / 0.7119 GB, free: 11.61 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.01828, allocations: 23.98 kB / 0.7119 GB, free: 11.59 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.881e-05/0.01832, allocations: 23.97 kB / 0.7119 GB, free: 11.57 MB / 426.8 MB Warning: Assuming fixed start value for the following 2 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.route.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 21 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.route.absorptionLumen.Cmin,$PRE.periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.Cmax,$PRE.periodicDose.route.absorptionLumen.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,periodicDose.route.absorptionLumen.rising,$PRE.periodicDose.route.absorptionLumen.rising,central.rising,$PRE.central.rising,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 3 * 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.0003346/0.01865, allocations: 232.3 kB / 0.7122 GB, free: 11.32 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.844e-05/0.01871, allocations: 35.81 kB / 0.7122 GB, free: 11.29 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.929e-05/0.0188, allocations: 38.95 kB / 0.7122 GB, free: 11.25 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.01881, allocations: 4 kB / 0.7122 GB, free: 11.24 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.01881, allocations: 4 kB / 0.7122 GB, free: 11.24 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.01882, allocations: 0 / 0.7122 GB, free: 11.24 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.02021, allocations: 0.8172 MB / 0.713 GB, free: 10.36 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.02021, allocations: 0 / 0.713 GB, free: 10.36 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003189/0.02053, allocations: 55.91 kB / 0.7131 GB, free: 10.31 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.02053, allocations: 0 / 0.7131 GB, free: 10.31 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.02057, allocations: 19.98 kB / 0.7131 GB, free: 10.29 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.02057, allocations: 0 / 0.7131 GB, free: 10.29 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.02057, allocations: 4 kB / 0.7131 GB, free: 10.29 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.02213, allocations: 0.7601 MB / 0.7139 GB, free: 9.473 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.02226, allocations: 55.77 kB / 0.7139 GB, free: 9.418 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.976e-05/0.02233, allocations: 16 kB / 0.7139 GB, free: 9.402 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.02255, allocations: 15.98 kB / 0.7139 GB, free: 9.387 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.02266, allocations: 31.89 kB / 0.714 GB, free: 9.355 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.0227, allocations: 19.92 kB / 0.714 GB, free: 9.336 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.0002219/0.02292, allocations: 177.2 kB / 0.7142 GB, free: 9.164 MB / 426.8 MB Notification: Performance of sort global known variables: time 1e-07/0.02292, allocations: 4 kB / 0.7142 GB, free: 9.16 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0004126/0.02333, allocations: 88 kB / 0.7142 GB, free: 9.074 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.route.variableDose.TotalCumulativeMass,periodicDose.route.absorptionLumen.C,periodicDose.route.absorptionLumen.AUC) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,central.Cmax,central.Cmin,central.rising,periodicDose.route.absorptionLumen.Cmax,periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 11 (periodicDose.pulse.count,central.Cmin,$whenCondition5,central.Cmax,$whenCondition4,central.rising,periodicDose.route.absorptionLumen.Cmin,$whenCondition3,periodicDose.route.absorptionLumen.Cmax,$whenCondition2,periodicDose.route.absorptionLumen.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * 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.00018/0.02351, allocations: 126.9 kB / 0.7144 GB, free: 8.945 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0009852/0.0245, allocations: 0.5847 MB / 0.7149 GB, free: 8.293 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.0245, allocations: 4.188 kB / 0.7149 GB, free: 8.289 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004728/0.02497, allocations: 322.1 kB / 0.7153 GB, free: 7.938 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005841/0.02555, allocations: 95.44 kB / 0.7153 GB, free: 7.844 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.02731, allocations: 0.85 MB / 0.7162 GB, free: 6.957 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.0275, allocations: 164.2 kB / 0.7163 GB, free: 6.773 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0001509/0.02765, allocations: 34.95 kB / 0.7164 GB, free: 6.738 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.275e-05/0.02773, allocations: 32.48 kB / 0.7164 GB, free: 6.707 MB / 426.8 MB Notification: Performance of SimCode: time 7.21e-07/0.02773, allocations: 3.938 kB / 0.7164 GB, free: 6.703 MB / 426.8 MB Notification: Performance of Templates: time 0.2155/0.2432, allocations: 4.786 MB / 0.7211 GB, free: 36.52 MB / 426.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.795403472846374]