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.001962/0.001962, allocations: 84.44 kB / 19.17 MB, free: 0.7383 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.002167/0.002167, allocations: 170.3 kB / 22.46 MB, free: 2.102 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.605/1.605, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.351/1.351, allocations: 293 MB / 0.5392 GB, free: 49.79 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,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.495e-06/2.495e-06, allocations: 0 / 0.6999 GB, free: 8.57 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.094e-05/3.343e-05, allocations: 2.281 kB / 0.6999 GB, free: 8.566 MB / 410.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate): time 0.004342/0.004375, allocations: 2.303 MB / 0.7021 GB, free: 6.246 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.005927, allocations: 0.6038 MB / 0.7027 GB, free: 5.641 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.006085, allocations: 7.938 kB / 0.7027 GB, free: 5.633 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.006271, allocations: 23.78 kB / 0.7028 GB, free: 5.609 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.006601, allocations: 79.28 kB / 0.7028 GB, free: 5.531 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003012/0.006902, allocations: 55.84 kB / 0.7029 GB, free: 5.477 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.00721, allocations: 262.6 kB / 0.7031 GB, free: 5.219 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.007367, allocations: 36.5 kB / 0.7032 GB, free: 5.188 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001909/0.007558, allocations: 147.6 kB / 0.7033 GB, free: 5.043 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.007795, allocations: 83.78 kB / 0.7034 GB, free: 4.961 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.007831, allocations: 16 kB / 0.7034 GB, free: 4.945 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.631e-05/0.007877, allocations: 16 kB / 0.7034 GB, free: 4.93 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 4.415e-05/0.007922, allocations: 47.77 kB / 0.7035 GB, free: 4.883 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.008023, allocations: 71.83 kB / 0.7035 GB, free: 4.812 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002784/0.008301, allocations: 199.4 kB / 0.7037 GB, free: 4.617 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.008306, allocations: 0 / 0.7037 GB, free: 4.617 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.724e-06/0.008307, allocations: 3.938 kB / 0.7037 GB, free: 4.613 MB / 410.8 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.008314, allocations: 0 / 0.7037 GB, free: 4.613 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.0009398/0.009254, allocations: 496.8 kB / 0.7042 GB, free: 4.082 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.009297, allocations: 8.031 kB / 0.7042 GB, free: 4.074 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.293e-05/0.009369, allocations: 24.8 kB / 0.7042 GB, free: 4.051 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.009645, allocations: 178.4 kB / 0.7044 GB, free: 3.848 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.009667, allocations: 16.55 kB / 0.7044 GB, free: 3.832 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.009709, allocations: 16.36 kB / 0.7044 GB, free: 3.816 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.01012, allocations: 190.5 kB / 0.7046 GB, free: 3.617 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.01014, allocations: 7.953 kB / 0.7046 GB, free: 3.609 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.01017, allocations: 8 kB / 0.7046 GB, free: 3.602 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.01018, allocations: 4 kB / 0.7046 GB, free: 3.598 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.01061, allocations: 150.2 kB / 0.7048 GB, free: 3.445 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008495/0.01145, allocations: 485.5 kB / 0.7052 GB, free: 2.938 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005705/0.01203, allocations: 164.2 kB / 0.7054 GB, free: 2.762 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.01227, allocations: 99.59 kB / 0.7055 GB, free: 2.656 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.01229, allocations: 7.938 kB / 0.7055 GB, free: 2.648 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000338/0.01263, allocations: 228.4 kB / 0.7057 GB, free: 2.395 MB / 410.8 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.01263, allocations: 0 / 0.7057 GB, free: 2.395 MB / 410.8 MB Notification: Performance of matching and sorting (n=21): time 0.001353/0.01398, allocations: 0.7065 MB / 0.7064 GB, free: 1.625 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.01404, allocations: 136.5 kB / 0.7065 GB, free: 1.461 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.01421, allocations: 219 kB / 0.7068 GB, free: 1.238 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.01423, allocations: 33.7 kB / 0.7068 GB, free: 1.199 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/0.01429, allocations: 132.5 kB / 0.7069 GB, free: 1.066 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.01433, allocations: 67.42 kB / 0.707 GB, free: 1 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.403e-05/0.0144, allocations: 53.7 kB / 0.707 GB, free: 0.9414 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 7.605e-05/0.01448, allocations: 338.8 kB / 0.7074 GB, free: 0.6016 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.01469, allocations: 145 kB / 0.7075 GB, free: 452 kB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.01491, allocations: 221.3 kB / 0.7077 GB, free: 184 kB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004391/0.01535, allocations: 284.9 kB / 0.708 GB, free: 15.86 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.01535, allocations: 7.922 kB / 0.708 GB, free: 15.85 MB / 426.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000741/0.0161, allocations: 393 kB / 0.7084 GB, free: 15.44 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.565e-05/0.01618, allocations: 70.36 kB / 0.7084 GB, free: 15.36 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.01619, allocations: 0 / 0.7084 GB, free: 15.36 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.01621, allocations: 4 kB / 0.7084 GB, free: 15.36 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.01646, allocations: 56.06 kB / 0.7085 GB, free: 15.3 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.01647, allocations: 4 kB / 0.7085 GB, free: 15.3 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.01667, allocations: 15.98 kB / 0.7085 GB, free: 15.29 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/0.0167, allocations: 19.98 kB / 0.7085 GB, free: 15.27 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.0002606/0.01696, allocations: 167.7 kB / 0.7087 GB, free: 15.09 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.1e-05/0.017, allocations: 23.83 kB / 0.7087 GB, free: 15.06 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.589e-05/0.01707, allocations: 21.97 kB / 0.7087 GB, free: 15.04 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.01707, allocations: 8 kB / 0.7087 GB, free: 15.03 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.01708, allocations: 3.938 kB / 0.7087 GB, free: 15.03 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.01709, allocations: 3.984 kB / 0.7087 GB, free: 15.02 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009763/0.01806, allocations: 0.5406 MB / 0.7093 GB, free: 14.43 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.01806, allocations: 4 kB / 0.7093 GB, free: 14.43 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.01827, allocations: 27.98 kB / 0.7093 GB, free: 14.4 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01827, allocations: 0 / 0.7093 GB, free: 14.4 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.0183, allocations: 11.98 kB / 0.7093 GB, free: 14.39 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.0183, allocations: 4 kB / 0.7093 GB, free: 14.39 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.01831, allocations: 3.938 kB / 0.7093 GB, free: 14.38 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008937/0.0192, allocations: 0.4926 MB / 0.7098 GB, free: 13.86 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.043e-05/0.01924, allocations: 19.86 kB / 0.7098 GB, free: 13.84 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.01929, allocations: 4 kB / 0.7098 GB, free: 13.84 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.01948, allocations: 16.03 kB / 0.7098 GB, free: 13.82 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/0.01957, allocations: 23.95 kB / 0.7099 GB, free: 13.8 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.01959, allocations: 8 kB / 0.7099 GB, free: 13.79 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.0001847/0.01977, allocations: 156.4 kB / 0.71 GB, free: 13.64 MB / 426.8 MB Notification: Performance of sort global known variables: time 9e-08/0.01977, allocations: 4 kB / 0.71 GB, free: 13.63 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0003122/0.02009, allocations: 59.94 kB / 0.7101 GB, free: 13.57 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.0001731/0.02026, allocations: 117.8 kB / 0.7102 GB, free: 13.45 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0007063/0.02096, allocations: 380 kB / 0.7105 GB, free: 13.04 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.02097, allocations: 64 / 0.7105 GB, free: 13.04 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003117/0.02128, allocations: 177 kB / 0.7107 GB, free: 12.85 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.02176, allocations: 67.83 kB / 0.7108 GB, free: 12.78 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.02305, allocations: 0.5753 MB / 0.7113 GB, free: 12.18 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.02321, allocations: 121.6 kB / 0.7115 GB, free: 12.04 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 9.937e-05/0.02331, allocations: 21.94 kB / 0.7115 GB, free: 12.01 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.966e-05/0.02338, allocations: 24.5 kB / 0.7115 GB, free: 11.99 MB / 426.8 MB Notification: Performance of SimCode: time 4.91e-07/0.02338, allocations: 4 kB / 0.7115 GB, free: 11.98 MB / 426.8 MB Notification: Performance of Templates: time 0.008627/0.03201, allocations: 3.348 MB / 0.7148 GB, free: 8.797 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.0368934699799865]