Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.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.002129/0.002129, allocations: 109.5 kB / 18.95 MB, free: 1.18 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.002396/0.002396, allocations: 215.6 kB / 22.25 MB, free: 3.582 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.746/1.746, allocations: 230.6 MB / 256 MB, free: 9.641 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.476/1.476, allocations: 316.7 MB / 0.6144 GB, free: 93.14 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.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference") translateModel(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference") [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.003797/0.003797, allocations: 77.69 kB / 0.775 GB, free: 14.8 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1753, allocations: 73.99 MB / 0.8472 GB, free: 4.949 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference): time 0.005372/0.1807, allocations: 2.285 MB / 0.8494 GB, free: 2.664 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.1823, allocations: 0.5953 MB / 0.85 GB, free: 2.074 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1824, allocations: 3.938 kB / 0.85 GB, free: 2.07 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1826, allocations: 24.38 kB / 0.8501 GB, free: 2.047 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.1829, allocations: 84.02 kB / 0.8501 GB, free: 1.965 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1831, allocations: 52.52 kB / 0.8502 GB, free: 1.914 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.000489/0.1836, allocations: 251.4 kB / 0.8504 GB, free: 1.668 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.1838, allocations: 40.5 kB / 0.8505 GB, free: 1.629 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.184, allocations: 96.17 kB / 0.8506 GB, free: 1.535 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/0.1843, allocations: 96.12 kB / 0.8506 GB, free: 1.441 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 5.574e-05/0.1844, allocations: 20.53 kB / 0.8507 GB, free: 1.422 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.1845, allocations: 20 kB / 0.8507 GB, free: 1.402 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-05/0.1845, allocations: 36.48 kB / 0.8507 GB, free: 1.367 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.1847, allocations: 96.11 kB / 0.8508 GB, free: 1.273 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004145/0.1851, allocations: 199.2 kB / 0.851 GB, free: 1.078 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1851, allocations: 0.5938 kB / 0.851 GB, free: 1.078 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1851, allocations: 0 / 0.851 GB, free: 1.078 MB / 474.8 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1851, allocations: 0.6562 kB / 0.851 GB, free: 1.078 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001306/0.1864, allocations: 0.4928 MB / 0.8515 GB, free: 0.543 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1865, allocations: 8.562 kB / 0.8515 GB, free: 0.5352 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.39e-05/0.1866, allocations: 28.8 kB / 0.8515 GB, free: 0.5078 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.187, allocations: 187.6 kB / 0.8517 GB, free: 304 kB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.187, allocations: 9.891 kB / 0.8517 GB, free: 296 kB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.416e-05/0.1871, allocations: 23.89 kB / 0.8517 GB, free: 272 kB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005562/0.1876, allocations: 185.9 kB / 0.8519 GB, free: 72 kB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.1876, allocations: 9.109 kB / 0.8519 GB, free: 64 kB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.1877, allocations: 4 kB / 0.8519 GB, free: 60 kB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1877, allocations: 4 kB / 0.8519 GB, free: 56 kB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.1882, allocations: 143.7 kB / 0.8521 GB, free: 15.91 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.1894, allocations: 482.5 kB / 0.8525 GB, free: 15.41 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007468/0.1902, allocations: 182.7 kB / 0.8527 GB, free: 15.21 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.1904, allocations: 90.53 kB / 0.8528 GB, free: 15.12 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.1905, allocations: 4 kB / 0.8528 GB, free: 15.11 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005451/0.191, allocations: 226.1 kB / 0.853 GB, free: 14.86 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.191, allocations: 0 / 0.853 GB, free: 14.86 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.002499/0.1935, allocations: 0.7005 MB / 0.8537 GB, free: 14.1 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.1936, allocations: 136.5 kB / 0.8538 GB, free: 13.94 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.194, allocations: 216 kB / 0.854 GB, free: 13.72 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.1941, allocations: 33.7 kB / 0.8541 GB, free: 13.68 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.1942, allocations: 132.5 kB / 0.8542 GB, free: 13.55 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1943, allocations: 76 kB / 0.8543 GB, free: 13.47 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.1945, allocations: 58.16 kB / 0.8543 GB, free: 13.41 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.1947, allocations: 334.8 kB / 0.8546 GB, free: 13.07 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.1951, allocations: 146.1 kB / 0.8548 GB, free: 12.91 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000475/0.1956, allocations: 225.9 kB / 0.855 GB, free: 12.65 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006783/0.1963, allocations: 274.6 kB / 0.8552 GB, free: 12.34 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1963, allocations: 0.7188 kB / 0.8552 GB, free: 12.34 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.3049/0.5012, allocations: 388.5 kB / 0.8556 GB, free: 28.26 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.612e-05/0.5012, allocations: 67.95 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.5012, allocations: 3.406 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/0.5012, allocations: 4.516 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.5015, allocations: 49.8 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.5015, allocations: 4.125 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/0.5017, allocations: 21.44 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.5017, allocations: 14.27 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Warning: Assuming fixed start value for the following 1 variables: periodicDose.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: 8 * Number of states: 0 () * Number of discrete variables: 13 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.central.rising,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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.000187/0.5019, allocations: 172.5 kB / 0.8559 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.5019, allocations: 24.47 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.296e-05/0.502, allocations: 26.45 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.502, allocations: 2.719 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.502, allocations: 1.062 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.502, allocations: 4.141 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006635/0.5026, allocations: 0.5348 MB / 0.8565 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5026, allocations: 0.6875 kB / 0.8565 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.5028, allocations: 36.81 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.5028, allocations: 1.875 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.5028, allocations: 7 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5028, allocations: 4.828 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5028, allocations: 3.938 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006314/0.5035, allocations: 0.4939 MB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.241e-05/0.5035, allocations: 23.95 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.5035, allocations: 9.375 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.5037, allocations: 18.11 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.5038, allocations: 19.36 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.5038, allocations: 6.781 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001132/0.5039, allocations: 158.4 kB / 0.8573 GB, free: 27.45 MB / 490.8 MB Notification: Performance of sort global known variables: time 6e-08/0.5039, allocations: 0.6562 kB / 0.8573 GB, free: 27.45 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002807/0.5042, allocations: 59.16 kB / 0.8573 GB, free: 27.45 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass) * Number of discrete variables: 8 ($whenCondition1,$whenCondition2,$whenCondition3,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 6 (periodicDose.pulse.count,central.Cmin,$whenCondition3,central.Cmax,$whenCondition2,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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 9.163e-05/0.5043, allocations: 113.5 kB / 0.8574 GB, free: 27.36 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0004826/0.5048, allocations: 386.1 kB / 0.8578 GB, free: 27.13 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.5048, allocations: 0.5938 kB / 0.8578 GB, free: 27.13 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001984/0.505, allocations: 174.9 kB / 0.858 GB, free: 27.04 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.5054, allocations: 67.06 kB / 0.858 GB, free: 27.04 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.5068, allocations: 0.6749 MB / 0.8587 GB, free: 26.77 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.5069, allocations: 127.8 kB / 0.8588 GB, free: 26.69 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.507, allocations: 22.52 kB / 0.8588 GB, free: 26.68 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.658e-05/0.507, allocations: 24.61 kB / 0.8589 GB, free: 26.68 MB / 490.8 MB Notification: Performance of SimCode: time 8.12e-07/0.507, allocations: 0.625 kB / 0.8589 GB, free: 26.68 MB / 490.8 MB Notification: Performance of Templates: time 0.007936/0.515, allocations: 3.649 MB / 0.8624 GB, free: 26.38 MB / 490.8 MB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.763040452962741]