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.002494/0.002494, allocations: 109.5 kB / 18.95 MB, free: 1.176 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.003206/0.003206, allocations: 218.4 kB / 22.25 MB, free: 3.559 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.75/1.75, allocations: 230.6 MB / 256 MB, free: 9.586 MB / 202.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.756/1.756, allocations: 316.7 MB / 0.6144 GB, free: 92.93 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: 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.003916/0.003916, allocations: 78.06 kB / 0.775 GB, free: 14.82 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2223, allocations: 73.99 MB / 0.8472 GB, free: 4.98 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.Allopurinol.Allopurinol_oxopurinol_direct_depot): time 0.00757/0.2298, allocations: 2.993 MB / 0.8501 GB, free: 1.984 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.2319, allocations: 0.6953 MB / 0.8508 GB, free: 1.297 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.2321, allocations: 4.781 kB / 0.8508 GB, free: 1.293 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.2323, allocations: 39.56 kB / 0.8509 GB, free: 1.254 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003772/0.2327, allocations: 120.9 kB / 0.851 GB, free: 1.137 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.2331, allocations: 84.56 kB / 0.8511 GB, free: 1.055 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005747/0.2336, allocations: 418.1 kB / 0.8515 GB, free: 0.6445 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002694/0.2339, allocations: 59.34 kB / 0.8515 GB, free: 0.5859 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.2342, allocations: 151.4 kB / 0.8517 GB, free: 448 kB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003906/0.2346, allocations: 144.7 kB / 0.8518 GB, free: 304 kB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 6.619e-05/0.2346, allocations: 31.94 kB / 0.8518 GB, free: 272 kB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 8.083e-05/0.2347, allocations: 36 kB / 0.8519 GB, free: 236 kB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 9.289e-05/0.2348, allocations: 68.8 kB / 0.8519 GB, free: 168 kB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.235, allocations: 139.4 kB / 0.8521 GB, free: 28 kB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0006033/0.2356, allocations: 354.7 kB / 0.8524 GB, free: 15.68 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.2356, allocations: 1.938 kB / 0.8524 GB, free: 15.68 MB / 490.8 MB Notification: Performance of FrontEnd: time 3.396e-06/0.2356, allocations: 0 / 0.8524 GB, free: 15.68 MB / 490.8 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.2356, allocations: 0 / 0.8524 GB, free: 15.68 MB / 490.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.001486/0.2371, allocations: 0.6065 MB / 0.853 GB, free: 15.03 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.2372, allocations: 11.97 kB / 0.853 GB, free: 15.02 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.2373, allocations: 32.75 kB / 0.853 GB, free: 14.98 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.2377, allocations: 225 kB / 0.8533 GB, free: 14.73 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.2378, allocations: 16.81 kB / 0.8533 GB, free: 14.72 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.809e-05/0.2378, allocations: 23.94 kB / 0.8533 GB, free: 14.7 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.2385, allocations: 307.3 kB / 0.8536 GB, free: 14.38 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.2385, allocations: 7.984 kB / 0.8536 GB, free: 14.37 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.2385, allocations: 4 kB / 0.8536 GB, free: 14.36 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.2385, allocations: 4 kB / 0.8536 GB, free: 14.36 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005798/0.2391, allocations: 253.7 kB / 0.8538 GB, free: 14.1 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.2405, allocations: 0.6473 MB / 0.8545 GB, free: 13.42 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007019/0.2412, allocations: 263.3 kB / 0.8547 GB, free: 13.14 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/0.2415, allocations: 160.9 kB / 0.8549 GB, free: 12.97 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.2415, allocations: 4.625 kB / 0.8549 GB, free: 12.96 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00085/0.2424, allocations: 380.2 kB / 0.8552 GB, free: 12.55 MB / 490.8 MB Notification: Performance of pre-optimization done (n=33): time 2.875e-06/0.2424, allocations: 0 / 0.8552 GB, free: 12.55 MB / 490.8 MB Notification: Performance of matching and sorting (n=35): time 0.4561/0.6984, allocations: 1.127 MB / 0.8563 GB, free: 28.29 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/0.6985, allocations: 219.3 kB / 0.8566 GB, free: 28.04 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.6988, allocations: 243.9 kB / 0.8568 GB, free: 27.94 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.6988, allocations: 38.36 kB / 0.8568 GB, free: 27.91 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.699, allocations: 159.8 kB / 0.857 GB, free: 27.81 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.6991, allocations: 116.1 kB / 0.8571 GB, free: 27.75 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.6992, allocations: 73.38 kB / 0.8572 GB, free: 27.73 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.6993, allocations: 347 kB / 0.8575 GB, free: 27.42 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.6996, allocations: 218.8 kB / 0.8577 GB, free: 27.32 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004543/0.7001, allocations: 330.7 kB / 0.858 GB, free: 27.09 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006163/0.7007, allocations: 453.1 kB / 0.8584 GB, free: 26.84 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.7007, allocations: 0.7656 kB / 0.8584 GB, free: 26.84 MB / 490.8 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008269/0.7015, allocations: 0.5792 MB / 0.859 GB, free: 26.58 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.152e-05/0.7016, allocations: 92.66 kB / 0.8591 GB, free: 26.49 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.7016, allocations: 5.281 kB / 0.8591 GB, free: 26.49 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.7016, allocations: 5.25 kB / 0.8591 GB, free: 26.49 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003211/0.7019, allocations: 77.61 kB / 0.8592 GB, free: 26.48 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.702, allocations: 13.47 kB / 0.8592 GB, free: 26.48 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.7022, allocations: 20.48 kB / 0.8592 GB, free: 26.48 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.7022, allocations: 19.3 kB / 0.8592 GB, free: 26.48 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.0003629/0.7026, allocations: 238.4 kB / 0.8595 GB, free: 26.3 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.777e-05/0.7026, allocations: 32.66 kB / 0.8595 GB, free: 26.28 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.853e-05/0.7027, allocations: 30.12 kB / 0.8595 GB, free: 26.27 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.7027, allocations: 10.95 kB / 0.8595 GB, free: 26.27 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.7027, allocations: 0.5938 kB / 0.8595 GB, free: 26.27 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.7027, allocations: 0 / 0.8595 GB, free: 26.27 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.7039, allocations: 0.8131 MB / 0.8603 GB, free: 25.9 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.7039, allocations: 0.625 kB / 0.8603 GB, free: 25.9 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.7042, allocations: 60.92 kB / 0.8604 GB, free: 25.9 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.7042, allocations: 2.594 kB / 0.8604 GB, free: 25.9 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.7042, allocations: 10.78 kB / 0.8604 GB, free: 25.9 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.7042, allocations: 0.625 kB / 0.8604 GB, free: 25.9 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.7042, allocations: 0.9062 kB / 0.8604 GB, free: 25.9 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.7053, allocations: 0.7668 MB / 0.8611 GB, free: 25.55 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.7054, allocations: 52.45 kB / 0.8612 GB, free: 25.54 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.94e-05/0.7055, allocations: 15.92 kB / 0.8612 GB, free: 25.54 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.7057, allocations: 13.81 kB / 0.8612 GB, free: 25.54 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.7058, allocations: 40.72 kB / 0.8613 GB, free: 25.54 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.7058, allocations: 10.41 kB / 0.8613 GB, free: 25.54 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001879/0.706, allocations: 183.1 kB / 0.8615 GB, free: 25.45 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.706, allocations: 3.062 kB / 0.8615 GB, free: 25.45 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0004008/0.7064, allocations: 85.84 kB / 0.8615 GB, free: 25.45 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 0.0001163/0.7065, allocations: 124.1 kB / 0.8617 GB, free: 25.36 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0007307/0.7073, allocations: 0.596 MB / 0.8622 GB, free: 25 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.7073, allocations: 2.094 kB / 0.8622 GB, free: 25 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003777/0.7076, allocations: 316.5 kB / 0.8625 GB, free: 24.8 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/0.7082, allocations: 92.17 kB / 0.8626 GB, free: 24.8 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.7101, allocations: 1.036 MB / 0.8636 GB, free: 24.32 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.7103, allocations: 162.3 kB / 0.8638 GB, free: 24.23 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.7105, allocations: 35.23 kB / 0.8638 GB, free: 24.23 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.275e-05/0.7105, allocations: 29.73 kB / 0.8639 GB, free: 24.22 MB / 490.8 MB Notification: Performance of SimCode: time 1.011e-06/0.7105, allocations: 0 / 0.8639 GB, free: 24.22 MB / 490.8 MB Notification: Performance of Templates: time 0.01345/0.724, allocations: 5.252 MB / 0.869 GB, free: 23.68 MB / 490.8 MB " [Timeout remaining time 659] 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: 8.000811340054497]