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.0009664/0.0009664, allocations: 92.42 kB / 19.94 MB, free: 4.602 MB / 18.57 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.0009116/0.0009116, allocations: 165.9 kB / 23.21 MB, free: 1.328 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 0.8774/0.8774, allocations: 177.1 MB / 203.5 MB, free: 5.707 MB / 186.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.7/0.7, allocations: 291.2 MB / 0.5382 GB, free: 51.85 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.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: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 0.6973 GB, free: 10.38 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.321e-05/1.438e-05, allocations: 2.281 kB / 0.6973 GB, free: 10.37 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference): time 0.005308/0.005322, allocations: 2.284 MB / 0.6996 GB, free: 8.074 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006475/0.00597, allocations: 0.6039 MB / 0.7002 GB, free: 7.469 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.273e-05/0.006043, allocations: 0 / 0.7002 GB, free: 7.469 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 9.29e-05/0.006136, allocations: 27.72 kB / 0.7002 GB, free: 7.441 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.00628, allocations: 79.28 kB / 0.7003 GB, free: 7.363 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001504/0.006431, allocations: 63.78 kB / 0.7003 GB, free: 7.301 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.006616, allocations: 262.6 kB / 0.7006 GB, free: 7.043 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.006742, allocations: 32.56 kB / 0.7006 GB, free: 7.016 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.006856, allocations: 143.7 kB / 0.7007 GB, free: 6.875 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.006997, allocations: 83.73 kB / 0.7008 GB, free: 6.793 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.007019, allocations: 16 kB / 0.7008 GB, free: 6.777 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.947e-05/0.007039, allocations: 16 kB / 0.7009 GB, free: 6.762 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 2.635e-05/0.007065, allocations: 47.77 kB / 0.7009 GB, free: 6.715 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 5.393e-05/0.007119, allocations: 71.83 kB / 0.701 GB, free: 6.645 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.007275, allocations: 199.3 kB / 0.7012 GB, free: 6.449 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.007276, allocations: 0 / 0.7012 GB, free: 6.449 MB / 410.8 MB Notification: Performance of FrontEnd: time 9.62e-07/0.007277, allocations: 0 / 0.7012 GB, free: 6.449 MB / 410.8 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.007281, allocations: 0 / 0.7012 GB, free: 6.449 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005546/0.007836, allocations: 0.493 MB / 0.7016 GB, free: 5.91 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.00787, allocations: 12.02 kB / 0.7016 GB, free: 5.898 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.007913, allocations: 24.8 kB / 0.7017 GB, free: 5.875 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.008062, allocations: 170.5 kB / 0.7018 GB, free: 5.68 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.008077, allocations: 20.53 kB / 0.7019 GB, free: 5.66 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.008101, allocations: 12.38 kB / 0.7019 GB, free: 5.648 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.008312, allocations: 190.5 kB / 0.702 GB, free: 5.449 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.008324, allocations: 7.953 kB / 0.7021 GB, free: 5.441 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.008339, allocations: 11.98 kB / 0.7021 GB, free: 5.43 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.008344, allocations: 4 kB / 0.7021 GB, free: 5.426 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.008522, allocations: 142.3 kB / 0.7022 GB, free: 5.281 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004618/0.008983, allocations: 497.3 kB / 0.7027 GB, free: 4.762 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002769/0.00926, allocations: 168.1 kB / 0.7028 GB, free: 4.582 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.928e-05/0.009349, allocations: 98.52 kB / 0.7029 GB, free: 4.477 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.009359, allocations: 4 kB / 0.7029 GB, free: 4.473 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001977/0.009557, allocations: 238.5 kB / 0.7032 GB, free: 4.211 MB / 410.8 MB Notification: Performance of pre-optimization done (n=20): time 1.233e-06/0.009558, allocations: 0 / 0.7032 GB, free: 4.211 MB / 410.8 MB Notification: Performance of matching and sorting (n=21): time 0.0007824/0.01034, allocations: 0.7027 MB / 0.7039 GB, free: 3.445 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.01039, allocations: 132.5 kB / 0.704 GB, free: 3.285 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.0105, allocations: 219 kB / 0.7042 GB, free: 3.062 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.01051, allocations: 29.7 kB / 0.7042 GB, free: 3.027 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.01056, allocations: 136.5 kB / 0.7043 GB, free: 2.891 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/0.01059, allocations: 67.42 kB / 0.7044 GB, free: 2.824 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.01064, allocations: 53.69 kB / 0.7045 GB, free: 2.766 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.266e-05/0.01067, allocations: 338.8 kB / 0.7048 GB, free: 2.426 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.01079, allocations: 145 kB / 0.7049 GB, free: 2.266 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.01091, allocations: 217.3 kB / 0.7051 GB, free: 2.008 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.01111, allocations: 286.2 kB / 0.7054 GB, free: 1.688 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.01111, allocations: 4.031 kB / 0.7054 GB, free: 1.684 MB / 410.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002902/0.0114, allocations: 391.9 kB / 0.7058 GB, free: 1.27 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.01142, allocations: 59.41 kB / 0.7058 GB, free: 1.199 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.01143, allocations: 0 / 0.7058 GB, free: 1.199 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.01144, allocations: 4 kB / 0.7058 GB, free: 1.195 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.01155, allocations: 60.06 kB / 0.7059 GB, free: 1.137 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.01155, allocations: 4 kB / 0.7059 GB, free: 1.133 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.2e-05/0.01165, allocations: 23.91 kB / 0.7059 GB, free: 1.109 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.01166, allocations: 12 kB / 0.7059 GB, free: 1.098 MB / 410.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.0001072/0.01177, allocations: 183.2 kB / 0.7061 GB, free: 0.9062 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.589e-05/0.01178, allocations: 15.91 kB / 0.7061 GB, free: 0.8906 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.01181, allocations: 21.97 kB / 0.7061 GB, free: 0.8672 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.01181, allocations: 8 kB / 0.7062 GB, free: 0.8594 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.01182, allocations: 3.938 kB / 0.7062 GB, free: 0.8555 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.01182, allocations: 3.984 kB / 0.7062 GB, free: 0.8516 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000384/0.0122, allocations: 0.5352 MB / 0.7067 GB, free: 276 kB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01221, allocations: 4 kB / 0.7067 GB, free: 272 kB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.182e-05/0.0123, allocations: 31.98 kB / 0.7067 GB, free: 240 kB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.0123, allocations: 0 / 0.7067 GB, free: 240 kB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.01231, allocations: 7.984 kB / 0.7067 GB, free: 232 kB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.01231, allocations: 0 / 0.7067 GB, free: 232 kB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.01231, allocations: 4 kB / 0.7067 GB, free: 228 kB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.01273, allocations: 0.4967 MB / 0.7072 GB, free: 15.69 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.328e-05/0.01276, allocations: 15.86 kB / 0.7072 GB, free: 15.68 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.01278, allocations: 8 kB / 0.7072 GB, free: 15.67 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.068e-05/0.01286, allocations: 24.02 kB / 0.7073 GB, free: 15.64 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.01292, allocations: 19.97 kB / 0.7073 GB, free: 15.62 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.01293, allocations: 4 kB / 0.7073 GB, free: 15.62 MB / 426.8 MB Notification: Performance of sorting global known variables: time 8.874e-05/0.01302, allocations: 168.3 kB / 0.7074 GB, free: 15.46 MB / 426.8 MB Notification: Performance of sort global known variables: time 5e-08/0.01302, allocations: 0 / 0.7074 GB, free: 15.46 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0001767/0.01319, allocations: 60 kB / 0.7075 GB, free: 15.4 MB / 426.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 7.845e-05/0.01327, allocations: 115.2 kB / 0.7076 GB, free: 15.28 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.0136, allocations: 374.3 kB / 0.708 GB, free: 14.87 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.0136, allocations: 448 / 0.708 GB, free: 14.87 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.01374, allocations: 179.3 kB / 0.7081 GB, free: 14.68 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.01399, allocations: 63.83 kB / 0.7082 GB, free: 14.62 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006831/0.01468, allocations: 0.6109 MB / 0.7088 GB, free: 13.97 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.401e-05/0.01475, allocations: 129.6 kB / 0.7089 GB, free: 13.82 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.792e-05/0.0148, allocations: 24.48 kB / 0.7089 GB, free: 13.8 MB / 426.8 MB Notification: Performance of SimCode: time 5.11e-07/0.0148, allocations: 0 / 0.7089 GB, free: 13.8 MB / 426.8 MB Notification: Performance of Templates: time 0.002938/0.01774, allocations: 2.933 MB / 0.7118 GB, free: 10.89 MB / 426.8 MB " [Timeout remaining time 660] 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 > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.728144028224051]