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.001314/0.001314, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002162/0.003476, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001397/0.001397, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001706/0.003103, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 0.973/0.973, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.102/1.075, allocations: 53.65 MB / 243.2 MB, free: 15.6 MB / 250.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.8553/0.8553, allocations: 291.2 MB / 0.5226 GB, free: 52.93 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04072/0.896, allocations: 21.04 MB / 0.5432 GB, free: 31.94 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 1.533e-06/1.533e-06, allocations: 0 / 0.5445 GB, free: 30.56 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.284e-05/1.438e-05, allocations: 2.312 kB / 0.5445 GB, free: 30.55 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate): time 0.002377/0.002391, allocations: 2.492 MB / 0.547 GB, free: 28.05 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007995/0.003191, allocations: 0.6232 MB / 0.5476 GB, free: 27.43 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.163e-05/0.003282, allocations: 4 kB / 0.5476 GB, free: 27.42 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 6.668e-05/0.003349, allocations: 31.66 kB / 0.5476 GB, free: 27.39 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.003485, allocations: 83.33 kB / 0.5477 GB, free: 27.31 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001607/0.003645, allocations: 59.75 kB / 0.5477 GB, free: 27.25 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002209/0.003866, allocations: 266.6 kB / 0.548 GB, free: 26.99 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.003981, allocations: 38.55 kB / 0.548 GB, free: 26.95 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.004154, allocations: 164.3 kB / 0.5482 GB, free: 26.79 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.004318, allocations: 91.7 kB / 0.5483 GB, free: 26.7 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.004346, allocations: 16 kB / 0.5483 GB, free: 26.69 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.203e-05/0.004368, allocations: 23.94 kB / 0.5483 GB, free: 26.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.98e-05/0.004398, allocations: 27.88 kB / 0.5483 GB, free: 26.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.204e-05/0.00446, allocations: 63.88 kB / 0.5484 GB, free: 26.57 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.004632, allocations: 135.5 kB / 0.5485 GB, free: 26.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.004642, allocations: 0 / 0.5485 GB, free: 26.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.004643, allocations: 4 kB / 0.5485 GB, free: 26.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.004656, allocations: 0 / 0.5485 GB, free: 26.44 MB / 410.7 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.0005511/0.005207, allocations: 0.4937 MB / 0.549 GB, free: 25.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.005239, allocations: 11.89 kB / 0.549 GB, free: 25.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.847e-05/0.005287, allocations: 24.91 kB / 0.549 GB, free: 25.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.005446, allocations: 187 kB / 0.5492 GB, free: 25.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.005464, allocations: 12.61 kB / 0.5492 GB, free: 25.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.005484, allocations: 8.375 kB / 0.5492 GB, free: 25.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.005637, allocations: 163.4 kB / 0.5494 GB, free: 25.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.005649, allocations: 0 / 0.5494 GB, free: 25.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.00566, allocations: 11.94 kB / 0.5494 GB, free: 25.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.005665, allocations: 7.938 kB / 0.5494 GB, free: 25.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.041e-05/0.005746, allocations: 72.7 kB / 0.5495 GB, free: 25.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.006127, allocations: 369 kB / 0.5498 GB, free: 24.99 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.006301, allocations: 108.1 kB / 0.5499 GB, free: 24.87 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.938e-05/0.00634, allocations: 58.48 kB / 0.55 GB, free: 24.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.925e-06/0.006348, allocations: 4 kB / 0.55 GB, free: 24.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.006489, allocations: 191.8 kB / 0.5502 GB, free: 24.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.006491, allocations: 0 / 0.5502 GB, free: 24.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005878/0.007079, allocations: 0.516 MB / 0.5507 GB, free: 24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.007125, allocations: 140.5 kB / 0.5508 GB, free: 23.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.007233, allocations: 202 kB / 0.551 GB, free: 23.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.007248, allocations: 33.7 kB / 0.551 GB, free: 23.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.007286, allocations: 120.4 kB / 0.5512 GB, free: 23.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.007315, allocations: 67.47 kB / 0.5512 GB, free: 23.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.59e-05/0.007361, allocations: 47.19 kB / 0.5513 GB, free: 23.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.511e-05/0.007406, allocations: 338.8 kB / 0.5516 GB, free: 23.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.15e-05/0.007468, allocations: 100.9 kB / 0.5517 GB, free: 22.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.638e-05/0.007534, allocations: 173.3 kB / 0.5519 GB, free: 22.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.007649, allocations: 218.1 kB / 0.5521 GB, free: 22.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.00765, allocations: 0 / 0.5521 GB, free: 22.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0001599/0.00781, allocations: 263.1 kB / 0.5523 GB, free: 22.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.007846, allocations: 63.41 kB / 0.5524 GB, free: 22.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.007853, allocations: 6.656 kB / 0.5524 GB, free: 22.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.007862, allocations: 11.92 kB / 0.5524 GB, free: 22.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.008021, allocations: 61.88 kB / 0.5524 GB, free: 21.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.008027, allocations: 4 kB / 0.5525 GB, free: 21.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.446e-05/0.008101, allocations: 19.92 kB / 0.5525 GB, free: 21.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.008112, allocations: 12 kB / 0.5525 GB, free: 21.95 MB / 410.7 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 9.989e-05/0.008212, allocations: 171.8 kB / 0.5526 GB, free: 21.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.00823, allocations: 15.98 kB / 0.5527 GB, free: 21.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.009e-05/0.008261, allocations: 25.95 kB / 0.5527 GB, free: 21.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.008263, allocations: 4 kB / 0.5527 GB, free: 21.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.008266, allocations: 0 / 0.5527 GB, free: 21.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.00827, allocations: 0 / 0.5527 GB, free: 21.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.008516, allocations: 382.2 kB / 0.5531 GB, free: 21.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.008518, allocations: 3.938 kB / 0.5531 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.008629, allocations: 43.97 kB / 0.5531 GB, free: 21.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.99e-05/0.008649, allocations: 19.86 kB / 0.5531 GB, free: 21.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.008651, allocations: 0 / 0.5531 GB, free: 21.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.008663, allocations: 11.38 kB / 0.5531 GB, free: 21.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.008664, allocations: 3.984 kB / 0.5531 GB, free: 21.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.008665, allocations: 0 / 0.5531 GB, free: 21.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.00885, allocations: 345 kB / 0.5535 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.008876, allocations: 7.984 kB / 0.5535 GB, free: 20.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.84e-05/0.008944, allocations: 16 kB / 0.5535 GB, free: 20.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.008993, allocations: 19.95 kB / 0.5535 GB, free: 20.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.009001, allocations: 7.938 kB / 0.5535 GB, free: 20.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.225e-05/0.009043, allocations: 69.94 kB / 0.5536 GB, free: 20.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009043, allocations: 0 / 0.5536 GB, free: 20.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001636/0.009207, allocations: 52 kB / 0.5536 GB, free: 20.69 MB / 410.7 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 6.642e-05/0.009273, allocations: 96.36 kB / 0.5537 GB, free: 20.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.00944, allocations: 303.6 kB / 0.554 GB, free: 20.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.009446, allocations: 8.062 kB / 0.554 GB, free: 20.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.973e-05/0.009516, allocations: 156.8 kB / 0.5542 GB, free: 20.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.009739, allocations: 85.78 kB / 0.5543 GB, free: 19.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005286/0.01503, allocations: 0.5783 MB / 0.5548 GB, free: 19.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.612e-05/0.01506, allocations: 80.33 kB / 0.5549 GB, free: 19.28 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.444e-05/0.01514, allocations: 25.98 kB / 0.5549 GB, free: 19.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.01526, allocations: 111.3 kB / 0.555 GB, free: 19.14 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01526, allocations: 0 / 0.555 GB, free: 19.14 MB / 410.7 MB Notification: Performance of Templates: time 0.004929/0.02019, allocations: 3.799 MB / 0.5587 GB, free: 15.49 MB / 410.7 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: 3.7072690846398473]