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.001221/0.001221, 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.001523/0.001523, allocations: 217.3 kB / 23 MB, free: 2.949 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 0.9902/0.9902, allocations: 230.6 MB / 256.8 MB, free: 9.598 MB / 202.7 MB " [Timeout remaining time 179] 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 0.6851/0.6851, allocations: 312.3 MB / 0.6108 GB, free: 97.18 MB / 410.7 MB " [Timeout remaining time 179] 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: 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.00142/0.00142, allocations: 78.06 kB / 0.7699 GB, free: 19.64 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1121, allocations: 73.99 MB / 0.8421 GB, free: 9.793 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot): time 0.002888/0.115, allocations: 2.986 MB / 0.845 GB, free: 6.809 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.0007915/0.1158, allocations: 0.6911 MB / 0.8457 GB, free: 6.125 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.589e-05/0.1159, allocations: 4.719 kB / 0.8457 GB, free: 6.121 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.116, allocations: 43.56 kB / 0.8458 GB, free: 6.078 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.1162, allocations: 125 kB / 0.8459 GB, free: 5.957 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.1164, allocations: 84.44 kB / 0.846 GB, free: 5.875 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.00028/0.1167, allocations: 414.1 kB / 0.8464 GB, free: 5.469 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1168, allocations: 58.34 kB / 0.8464 GB, free: 5.41 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1169, allocations: 147.5 kB / 0.8466 GB, free: 5.266 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.1171, allocations: 144.3 kB / 0.8467 GB, free: 5.125 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.1172, allocations: 35.94 kB / 0.8467 GB, free: 5.09 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.612e-05/0.1172, allocations: 36.62 kB / 0.8468 GB, free: 5.055 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 4.09e-05/0.1172, allocations: 64.39 kB / 0.8468 GB, free: 4.992 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 9.548e-05/0.1173, allocations: 139.4 kB / 0.847 GB, free: 4.855 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.1176, allocations: 363.1 kB / 0.8473 GB, free: 4.5 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1176, allocations: 0.7812 kB / 0.8473 GB, free: 4.5 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1176, allocations: 0 / 0.8473 GB, free: 4.5 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1176, allocations: 0.5 kB / 0.8473 GB, free: 4.5 MB / 474.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.000692/0.1183, allocations: 0.6015 MB / 0.8479 GB, free: 3.852 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.1183, allocations: 8.031 kB / 0.8479 GB, free: 3.844 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.1184, allocations: 37.59 kB / 0.8479 GB, free: 3.809 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.1186, allocations: 232.9 kB / 0.8482 GB, free: 3.555 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.1186, allocations: 13.31 kB / 0.8482 GB, free: 3.543 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.1187, allocations: 32.61 kB / 0.8482 GB, free: 3.512 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.119, allocations: 305.7 kB / 0.8485 GB, free: 3.188 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.119, allocations: 0 / 0.8485 GB, free: 3.188 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.119, allocations: 12.62 kB / 0.8485 GB, free: 3.176 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.119, allocations: 4.719 kB / 0.8485 GB, free: 3.172 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.1193, allocations: 249.1 kB / 0.8487 GB, free: 2.914 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007009/0.12, allocations: 0.6477 MB / 0.8494 GB, free: 2.234 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.1204, allocations: 268.4 kB / 0.8496 GB, free: 1.953 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.1205, allocations: 157.1 kB / 0.8498 GB, free: 1.785 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.1205, allocations: 4.688 kB / 0.8498 GB, free: 1.781 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/0.1208, allocations: 374.9 kB / 0.8501 GB, free: 1.367 MB / 474.8 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.1209, allocations: 0.5938 kB / 0.8501 GB, free: 1.367 MB / 474.8 MB Notification: Performance of matching and sorting (n=35): time 0.001226/0.1221, allocations: 1.142 MB / 0.8513 GB, free: 140 kB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00022/0.1223, allocations: 221.6 kB / 0.8515 GB, free: 15.87 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.1225, allocations: 241.7 kB / 0.8517 GB, free: 15.63 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.1225, allocations: 38.33 kB / 0.8517 GB, free: 15.59 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.066e-05/0.1226, allocations: 156.8 kB / 0.8519 GB, free: 15.43 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.617e-05/0.1226, allocations: 119.7 kB / 0.852 GB, free: 15.31 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.351e-05/0.1227, allocations: 78.08 kB / 0.8521 GB, free: 15.23 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 7.986e-05/0.1228, allocations: 347.2 kB / 0.8524 GB, free: 14.88 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.123, allocations: 220.4 kB / 0.8526 GB, free: 14.64 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.1232, allocations: 323.5 kB / 0.8529 GB, free: 14.27 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.1235, allocations: 450.9 kB / 0.8534 GB, free: 13.76 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1235, allocations: 5.781 kB / 0.8534 GB, free: 13.76 MB / 490.8 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000504/0.124, allocations: 0.5716 MB / 0.8539 GB, free: 13.14 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/0.1241, allocations: 95.44 kB / 0.854 GB, free: 13.04 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1241, allocations: 3.938 kB / 0.854 GB, free: 13.03 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1241, allocations: 6 kB / 0.854 GB, free: 13.03 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.1243, allocations: 83.83 kB / 0.8541 GB, free: 12.95 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.1243, allocations: 8 kB / 0.8541 GB, free: 12.94 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.1244, allocations: 24.42 kB / 0.8541 GB, free: 12.91 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.1244, allocations: 16 kB / 0.8541 GB, free: 12.9 MB / 490.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.0001828/0.1246, allocations: 242.1 kB / 0.8544 GB, free: 12.64 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.1246, allocations: 35.75 kB / 0.8544 GB, free: 12.61 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.028e-05/0.1247, allocations: 33.17 kB / 0.8544 GB, free: 12.58 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1247, allocations: 4 kB / 0.8544 GB, free: 12.57 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1247, allocations: 0 / 0.8544 GB, free: 12.57 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1247, allocations: 7.922 kB / 0.8545 GB, free: 12.57 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007015/0.1254, allocations: 0.8032 MB / 0.8552 GB, free: 11.7 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1254, allocations: 0 / 0.8552 GB, free: 11.7 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.1255, allocations: 63.89 kB / 0.8553 GB, free: 11.64 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1255, allocations: 1 kB / 0.8553 GB, free: 11.64 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.1256, allocations: 8 kB / 0.8553 GB, free: 11.63 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1256, allocations: 4.5 kB / 0.8553 GB, free: 11.63 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1256, allocations: 4 kB / 0.8553 GB, free: 11.62 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2328/0.3583, allocations: 0.7619 MB / 0.8561 GB, free: 29.2 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3585, allocations: 53.75 kB / 0.8561 GB, free: 29.2 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.3585, allocations: 14.12 kB / 0.8561 GB, free: 29.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.3587, allocations: 24.39 kB / 0.8561 GB, free: 29.2 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.397e-05/0.3587, allocations: 31 kB / 0.8562 GB, free: 29.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.3588, allocations: 12.52 kB / 0.8562 GB, free: 29.2 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001204/0.3589, allocations: 181.8 kB / 0.8564 GB, free: 29.12 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.3589, allocations: 0 / 0.8564 GB, free: 29.12 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002796/0.3592, allocations: 86.16 kB / 0.8564 GB, free: 29.12 MB / 490.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 9.835e-05/0.3593, allocations: 121.1 kB / 0.8566 GB, free: 29.03 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0004901/0.3598, allocations: 0.5875 MB / 0.8571 GB, free: 28.69 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3598, allocations: 0 / 0.8571 GB, free: 28.69 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.36, allocations: 316.9 kB / 0.8574 GB, free: 28.5 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.3603, allocations: 95.25 kB / 0.8575 GB, free: 28.5 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.3615, allocations: 1.059 MB / 0.8586 GB, free: 28.03 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.701e-05/0.3616, allocations: 163.3 kB / 0.8587 GB, free: 27.95 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.487e-05/0.3617, allocations: 33.34 kB / 0.8587 GB, free: 27.95 MB / 490.8 MB Notification: Performance of SimCode: time 7.11e-07/0.3617, allocations: 0 / 0.8587 GB, free: 27.95 MB / 490.8 MB Notification: Performance of Templates: time 0.005508/0.3672, allocations: 4.305 MB / 0.863 GB, free: 27.55 MB / 490.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 > Pharmacolibrary_Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.806769580580294]