Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.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.001038/0.001038, allocations: 92.52 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.001693/0.001693, allocations: 165.9 kB / 23.21 MB, free: 1.332 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.9298/0.9298, allocations: 177.1 MB / 203.5 MB, free: 5.75 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.7051/0.7051, allocations: 291.1 MB / 0.5382 GB, free: 51.9 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,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate") translateModel(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 0.6973 GB, free: 10.4 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.42e-05/3.686e-05, allocations: 2.281 kB / 0.6973 GB, free: 10.4 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate): time 0.003397/0.003434, allocations: 2.305 MB / 0.6996 GB, free: 8.078 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.004474, allocations: 0.6038 MB / 0.7002 GB, free: 7.473 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.004601, allocations: 0 / 0.7002 GB, free: 7.473 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.004737, allocations: 23.72 kB / 0.7002 GB, free: 7.449 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.004976, allocations: 95.25 kB / 0.7003 GB, free: 7.355 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.005227, allocations: 55.81 kB / 0.7003 GB, free: 7.301 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.005492, allocations: 262.6 kB / 0.7006 GB, free: 7.043 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.005648, allocations: 40.55 kB / 0.7006 GB, free: 7.008 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.005818, allocations: 131.7 kB / 0.7008 GB, free: 6.879 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.006016, allocations: 87.7 kB / 0.7008 GB, free: 6.793 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.006052, allocations: 16 kB / 0.7009 GB, free: 6.777 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 3.057e-05/0.006083, allocations: 20 kB / 0.7009 GB, free: 6.758 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 3.548e-05/0.006118, allocations: 35.86 kB / 0.7009 GB, free: 6.723 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 8.423e-05/0.006202, allocations: 75.77 kB / 0.701 GB, free: 6.648 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.006458, allocations: 203.4 kB / 0.7012 GB, free: 6.449 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.006463, allocations: 4 kB / 0.7012 GB, free: 6.445 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.493e-06/0.006465, allocations: 0 / 0.7012 GB, free: 6.445 MB / 410.8 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.006471, allocations: 0 / 0.7012 GB, free: 6.445 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.0008348/0.007306, allocations: 488.8 kB / 0.7016 GB, free: 5.922 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.007351, allocations: 16.03 kB / 0.7017 GB, free: 5.906 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.007419, allocations: 24.8 kB / 0.7017 GB, free: 5.883 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.007651, allocations: 182.4 kB / 0.7019 GB, free: 5.676 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.007673, allocations: 8.609 kB / 0.7019 GB, free: 5.668 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.00771, allocations: 16.38 kB / 0.7019 GB, free: 5.652 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.008046, allocations: 198.4 kB / 0.7021 GB, free: 5.445 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.008066, allocations: 3.953 kB / 0.7021 GB, free: 5.441 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.008087, allocations: 8 kB / 0.7021 GB, free: 5.434 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.008093, allocations: 0 / 0.7021 GB, free: 5.434 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.008372, allocations: 146.3 kB / 0.7022 GB, free: 5.285 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007168/0.009089, allocations: 485.4 kB / 0.7027 GB, free: 4.777 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.009413, allocations: 180.1 kB / 0.7029 GB, free: 4.586 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.313e-05/0.009507, allocations: 92.09 kB / 0.7029 GB, free: 4.488 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.009517, allocations: 0 / 0.7029 GB, free: 4.488 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.009736, allocations: 235.9 kB / 0.7032 GB, free: 4.23 MB / 410.8 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.009737, allocations: 0 / 0.7032 GB, free: 4.23 MB / 410.8 MB Notification: Performance of matching and sorting (n=21): time 0.0008621/0.0106, allocations: 0.7029 MB / 0.7039 GB, free: 3.465 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.01064, allocations: 140.4 kB / 0.704 GB, free: 3.297 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.01076, allocations: 223 kB / 0.7042 GB, free: 3.07 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.01077, allocations: 29.7 kB / 0.7042 GB, free: 3.035 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.078e-05/0.01082, allocations: 140.4 kB / 0.7044 GB, free: 2.895 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.01085, allocations: 63.44 kB / 0.7044 GB, free: 2.832 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.0109, allocations: 53.69 kB / 0.7045 GB, free: 2.773 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.71e-05/0.01094, allocations: 338.8 kB / 0.7048 GB, free: 2.434 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.01106, allocations: 145 kB / 0.7049 GB, free: 2.273 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.01118, allocations: 221.3 kB / 0.7052 GB, free: 2.012 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.01138, allocations: 284.8 kB / 0.7054 GB, free: 1.691 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.01139, allocations: 0 / 0.7054 GB, free: 1.691 MB / 410.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003031/0.01169, allocations: 394.6 kB / 0.7058 GB, free: 1.277 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.01172, allocations: 59.41 kB / 0.7059 GB, free: 1.207 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.01172, allocations: 4 kB / 0.7059 GB, free: 1.203 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.01174, allocations: 0 / 0.7059 GB, free: 1.203 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.01186, allocations: 63.83 kB / 0.7059 GB, free: 1.141 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.01186, allocations: 4 kB / 0.7059 GB, free: 1.137 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.748e-05/0.01195, allocations: 16.2 kB / 0.7059 GB, free: 1.121 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.01196, allocations: 16 kB / 0.706 GB, free: 1.105 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.0001378/0.0121, allocations: 171.7 kB / 0.7061 GB, free: 0.9219 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.823e-05/0.01212, allocations: 23.84 kB / 0.7061 GB, free: 0.8984 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.01215, allocations: 21.97 kB / 0.7062 GB, free: 0.875 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.01215, allocations: 3.984 kB / 0.7062 GB, free: 0.8711 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.01216, allocations: 7.938 kB / 0.7062 GB, free: 0.8633 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.01216, allocations: 3.984 kB / 0.7062 GB, free: 0.8594 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004158/0.01258, allocations: 0.5469 MB / 0.7067 GB, free: 272 kB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.01258, allocations: 0 / 0.7067 GB, free: 272 kB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.996e-05/0.01268, allocations: 31.97 kB / 0.7067 GB, free: 240 kB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.01268, allocations: 4 kB / 0.7067 GB, free: 236 kB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.0127, allocations: 4 kB / 0.7067 GB, free: 232 kB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.0127, allocations: 4 kB / 0.7068 GB, free: 228 kB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.0127, allocations: 0 / 0.7068 GB, free: 228 kB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/0.01314, allocations: 0.4987 MB / 0.7072 GB, free: 15.7 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.876e-05/0.01316, allocations: 19.86 kB / 0.7073 GB, free: 15.68 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.932e-05/0.01319, allocations: 12.03 kB / 0.7073 GB, free: 15.66 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.865e-05/0.01327, allocations: 11.98 kB / 0.7073 GB, free: 15.65 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.223e-05/0.01334, allocations: 19.97 kB / 0.7073 GB, free: 15.63 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.01335, allocations: 12 kB / 0.7073 GB, free: 15.62 MB / 426.8 MB Notification: Performance of sorting global known variables: time 9.121e-05/0.01344, allocations: 160.4 kB / 0.7075 GB, free: 15.46 MB / 426.8 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01344, allocations: 0 / 0.7075 GB, free: 15.46 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0001951/0.01363, allocations: 56 kB / 0.7075 GB, free: 15.41 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.0001151/0.01375, allocations: 120.5 kB / 0.7076 GB, free: 15.29 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0003761/0.01412, allocations: 382.2 kB / 0.708 GB, free: 14.87 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01413, allocations: 0 / 0.708 GB, free: 14.87 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.01427, allocations: 173 kB / 0.7082 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.0003047/0.01458, allocations: 64.33 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.0008092/0.01539, allocations: 0.5915 MB / 0.7088 GB, free: 13.99 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.04e-05/0.01547, allocations: 125.6 kB / 0.7089 GB, free: 13.85 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.335e-05/0.01552, allocations: 20.5 kB / 0.7089 GB, free: 13.83 MB / 426.8 MB Notification: Performance of SimCode: time 1.272e-06/0.01552, allocations: 7.938 kB / 0.7089 GB, free: 13.82 MB / 426.8 MB Notification: Performance of Templates: time 0.003666/0.01919, allocations: 2.945 MB / 0.7118 GB, free: 10.9 MB / 426.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.5790371196344495]