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.001849/0.001849, allocations: 84.44 kB / 19.17 MB, free: 0.7305 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.002043/0.002043, allocations: 169.9 kB / 22.46 MB, free: 2.094 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.627/1.627, allocations: 177.1 MB / 202.8 MB, free: 5.777 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.313/1.313, 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.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.452e-06/1.452e-06, allocations: 0 / 0.6998 GB, free: 8.594 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.952e-05/3.097e-05, allocations: 6.281 kB / 0.6999 GB, free: 8.586 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference): time 0.003391/0.003422, allocations: 2.29 MB / 0.7021 GB, free: 6.281 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.004604, allocations: 0.5962 MB / 0.7027 GB, free: 5.684 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001782/0.004783, allocations: 7.938 kB / 0.7027 GB, free: 5.676 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.004943, allocations: 23.72 kB / 0.7027 GB, free: 5.652 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002997/0.005242, allocations: 83.31 kB / 0.7028 GB, free: 5.57 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.005506, allocations: 51.88 kB / 0.7028 GB, free: 5.52 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003236/0.00583, allocations: 262.6 kB / 0.7031 GB, free: 5.262 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.006001, allocations: 40.5 kB / 0.7031 GB, free: 5.227 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.006243, allocations: 147.6 kB / 0.7033 GB, free: 5.082 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.00647, allocations: 75.8 kB / 0.7033 GB, free: 5.008 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.006516, allocations: 19.94 kB / 0.7034 GB, free: 4.988 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.096e-05/0.006557, allocations: 16 kB / 0.7034 GB, free: 4.973 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 3.842e-05/0.006596, allocations: 43.83 kB / 0.7034 GB, free: 4.93 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 9.533e-05/0.006691, allocations: 79.77 kB / 0.7035 GB, free: 4.852 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.006934, allocations: 195.4 kB / 0.7037 GB, free: 4.66 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.006938, allocations: 0 / 0.7037 GB, free: 4.66 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.283e-06/0.006939, allocations: 0 / 0.7037 GB, free: 4.66 MB / 410.8 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.006947, allocations: 0 / 0.7037 GB, free: 4.66 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.0008472/0.007794, allocations: 0.493 MB / 0.7042 GB, free: 4.121 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.00784, allocations: 11.97 kB / 0.7042 GB, free: 4.109 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.357e-05/0.007914, allocations: 24.8 kB / 0.7042 GB, free: 4.086 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.008142, allocations: 174.4 kB / 0.7044 GB, free: 3.887 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.008163, allocations: 12.61 kB / 0.7044 GB, free: 3.875 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.008198, allocations: 12.38 kB / 0.7044 GB, free: 3.863 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.008543, allocations: 198.5 kB / 0.7046 GB, free: 3.656 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.008561, allocations: 7.953 kB / 0.7046 GB, free: 3.648 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.343e-05/0.008584, allocations: 7.984 kB / 0.7046 GB, free: 3.641 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.008591, allocations: 4 kB / 0.7046 GB, free: 3.637 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003431/0.008934, allocations: 146.2 kB / 0.7047 GB, free: 3.488 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007271/0.009661, allocations: 481.5 kB / 0.7052 GB, free: 2.984 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000465/0.01013, allocations: 180 kB / 0.7054 GB, free: 2.793 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.01029, allocations: 90.67 kB / 0.7054 GB, free: 2.695 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.01031, allocations: 7.938 kB / 0.7055 GB, free: 2.688 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.01061, allocations: 232.4 kB / 0.7057 GB, free: 2.43 MB / 410.8 MB Notification: Performance of pre-optimization done (n=20): time 1.823e-06/0.01061, allocations: 0 / 0.7057 GB, free: 2.43 MB / 410.8 MB Notification: Performance of matching and sorting (n=21): time 0.001452/0.01207, allocations: 0.6987 MB / 0.7064 GB, free: 1.668 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/0.01213, allocations: 140.5 kB / 0.7065 GB, free: 1.5 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.01233, allocations: 215 kB / 0.7067 GB, free: 1.281 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.01235, allocations: 33.7 kB / 0.7067 GB, free: 1.242 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.652e-05/0.01243, allocations: 132.5 kB / 0.7069 GB, free: 1.109 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.624e-05/0.01247, allocations: 75.42 kB / 0.7069 GB, free: 1.035 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-05/0.01255, allocations: 49.69 kB / 0.707 GB, free: 0.9805 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 5.815e-05/0.01261, allocations: 334.8 kB / 0.7073 GB, free: 0.6445 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.01283, allocations: 145 kB / 0.7074 GB, free: 496 kB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.01305, allocations: 229.3 kB / 0.7076 GB, free: 220 kB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/0.01348, allocations: 280.9 kB / 0.7079 GB, free: 15.89 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.01349, allocations: 0 / 0.7079 GB, free: 15.89 MB / 426.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007394/0.01423, allocations: 390.6 kB / 0.7083 GB, free: 15.48 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.299e-05/0.0143, allocations: 64.19 kB / 0.7083 GB, free: 15.41 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.01431, allocations: 0 / 0.7083 GB, free: 15.41 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.01433, allocations: 8.219 kB / 0.7084 GB, free: 15.4 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.01456, allocations: 51.84 kB / 0.7084 GB, free: 15.35 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.01457, allocations: 7.984 kB / 0.7084 GB, free: 15.34 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.01479, allocations: 19.98 kB / 0.7084 GB, free: 15.32 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.01482, allocations: 15.98 kB / 0.7084 GB, free: 15.31 MB / 426.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.0002569/0.01508, allocations: 175.4 kB / 0.7086 GB, free: 15.12 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.95e-05/0.01513, allocations: 19.91 kB / 0.7086 GB, free: 15.11 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.185e-05/0.01519, allocations: 25.97 kB / 0.7087 GB, free: 15.08 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.0152, allocations: 4 kB / 0.7087 GB, free: 15.07 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.01521, allocations: 7.875 kB / 0.7087 GB, free: 15.07 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.01522, allocations: 3.984 kB / 0.7087 GB, free: 15.06 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009987/0.01622, allocations: 0.5429 MB / 0.7092 GB, free: 14.48 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.01622, allocations: 0 / 0.7092 GB, free: 14.48 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.01642, allocations: 27.98 kB / 0.7092 GB, free: 14.45 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.01643, allocations: 7.922 kB / 0.7092 GB, free: 14.44 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.01645, allocations: 12 kB / 0.7093 GB, free: 14.43 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.01646, allocations: 0 / 0.7093 GB, free: 14.43 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01646, allocations: 0 / 0.7093 GB, free: 14.43 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009287/0.01739, allocations: 0.4928 MB / 0.7097 GB, free: 13.9 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/0.01744, allocations: 19.86 kB / 0.7098 GB, free: 13.88 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.01e-05/0.0175, allocations: 12.03 kB / 0.7098 GB, free: 13.87 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.01768, allocations: 11.98 kB / 0.7098 GB, free: 13.86 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.827e-05/0.01778, allocations: 19.97 kB / 0.7098 GB, free: 13.84 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.0178, allocations: 12 kB / 0.7098 GB, free: 13.83 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.0001999/0.018, allocations: 164.4 kB / 0.71 GB, free: 13.67 MB / 426.8 MB Notification: Performance of sort global known variables: time 5e-08/0.018, allocations: 0 / 0.71 GB, free: 13.67 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0003222/0.01832, allocations: 52 kB / 0.71 GB, free: 13.62 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 0.0001793/0.0185, allocations: 117.8 kB / 0.7101 GB, free: 13.5 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0006937/0.01919, allocations: 378.6 kB / 0.7105 GB, free: 13.09 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01919, allocations: 4.062 kB / 0.7105 GB, free: 13.08 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003165/0.01951, allocations: 173 kB / 0.7107 GB, free: 12.89 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.02001, allocations: 79.7 kB / 0.7107 GB, free: 12.82 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.02134, allocations: 0.5742 MB / 0.7113 GB, free: 12.21 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.02151, allocations: 129.6 kB / 0.7114 GB, free: 12.07 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.02163, allocations: 17.95 kB / 0.7114 GB, free: 12.05 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.395e-05/0.0217, allocations: 24.5 kB / 0.7115 GB, free: 12.02 MB / 426.8 MB Notification: Performance of SimCode: time 6.91e-07/0.0217, allocations: 0 / 0.7115 GB, free: 12.02 MB / 426.8 MB Notification: Performance of Templates: time 0.008799/0.0305, allocations: 3.355 MB / 0.7147 GB, free: 8.836 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 -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.202951952116564]