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.001229/0.001229, allocations: 68.19 kB / 9.865 MB, free: 0.8242 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002063/0.003292, allocations: 443.8 kB / 10.3 MB, free: 400 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.001278/0.001278, allocations: 157.2 kB / 11.19 MB, free: 2.984 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001171/0.002449, allocations: 463.6 kB / 11.64 MB, free: 2.527 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.9634/0.9634, allocations: 177.2 MB / 189.5 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08249/1.046, allocations: 53.66 MB / 243.2 MB, free: 15.59 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.7673/0.7673, allocations: 291.1 MB / 0.5225 GB, free: 52.93 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02605/0.7933, allocations: 21.05 MB / 0.5431 GB, free: 31.95 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.372e-06/1.372e-06, allocations: 0 / 0.5444 GB, free: 30.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.006e-05/2.143e-05, allocations: 6.25 kB / 0.5444 GB, free: 30.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate): time 0.002192/0.002213, allocations: 2.481 MB / 0.5469 GB, free: 28.1 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007537/0.002967, allocations: 0.6271 MB / 0.5475 GB, free: 27.47 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.376e-05/0.003041, allocations: 0 / 0.5475 GB, free: 27.47 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 6.086e-05/0.003102, allocations: 27.7 kB / 0.5475 GB, free: 27.45 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.00323, allocations: 83.28 kB / 0.5476 GB, free: 27.36 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001203/0.00335, allocations: 51.88 kB / 0.5476 GB, free: 27.31 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.003542, allocations: 270.6 kB / 0.5479 GB, free: 27.05 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.003648, allocations: 42.47 kB / 0.5479 GB, free: 27.01 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.00382, allocations: 176.1 kB / 0.5481 GB, free: 26.84 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.003965, allocations: 83.78 kB / 0.5482 GB, free: 26.75 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.461e-05/0.00399, allocations: 16 kB / 0.5482 GB, free: 26.74 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.404e-05/0.004014, allocations: 16 kB / 0.5482 GB, free: 26.72 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.573e-05/0.004039, allocations: 27.88 kB / 0.5482 GB, free: 26.7 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.44e-05/0.004094, allocations: 59.88 kB / 0.5483 GB, free: 26.64 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.004243, allocations: 143.5 kB / 0.5484 GB, free: 26.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.261e-05/0.004256, allocations: 0 / 0.5484 GB, free: 26.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.004257, allocations: 4 kB / 0.5484 GB, free: 26.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.004266, allocations: 0 / 0.5484 GB, free: 26.49 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.0005323/0.004799, allocations: 0.4937 MB / 0.5489 GB, free: 25.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.72e-05/0.004826, allocations: 19.83 kB / 0.5489 GB, free: 25.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.004868, allocations: 24.91 kB / 0.5489 GB, free: 25.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.00501, allocations: 175.1 kB / 0.5491 GB, free: 25.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.005028, allocations: 4.609 kB / 0.5491 GB, free: 25.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.00505, allocations: 20.38 kB / 0.5491 GB, free: 25.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001525/0.005203, allocations: 167.3 kB / 0.5493 GB, free: 25.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.005213, allocations: 0 / 0.5493 GB, free: 25.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.005223, allocations: 4 kB / 0.5493 GB, free: 25.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.005228, allocations: 4 kB / 0.5493 GB, free: 25.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.445e-05/0.005303, allocations: 76.7 kB / 0.5494 GB, free: 25.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003732/0.005676, allocations: 372.8 kB / 0.5497 GB, free: 25.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.005836, allocations: 112.1 kB / 0.5498 GB, free: 24.92 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.507e-05/0.005871, allocations: 58.55 kB / 0.5499 GB, free: 24.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.005881, allocations: 4 kB / 0.5499 GB, free: 24.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001258/0.006007, allocations: 188.4 kB / 0.5501 GB, free: 24.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.006008, allocations: 0 / 0.5501 GB, free: 24.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005206/0.006529, allocations: 0.5041 MB / 0.5506 GB, free: 24.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.006559, allocations: 140.5 kB / 0.5507 GB, free: 23.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.028e-05/0.006649, allocations: 210.1 kB / 0.5509 GB, free: 23.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.006661, allocations: 29.7 kB / 0.5509 GB, free: 23.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.233e-05/0.006693, allocations: 120.4 kB / 0.551 GB, free: 23.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.006723, allocations: 67.41 kB / 0.5511 GB, free: 23.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.006773, allocations: 59.17 kB / 0.5512 GB, free: 23.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.168e-05/0.006804, allocations: 334.8 kB / 0.5515 GB, free: 23.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.98e-05/0.006854, allocations: 97 kB / 0.5516 GB, free: 22.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.033e-05/0.006915, allocations: 169.4 kB / 0.5517 GB, free: 22.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.007017, allocations: 223 kB / 0.552 GB, free: 22.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.007019, allocations: 0 / 0.552 GB, free: 22.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0001517/0.007171, allocations: 260.2 kB / 0.5522 GB, free: 22.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.0072, allocations: 71.55 kB / 0.5523 GB, free: 22.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.007204, allocations: 4 kB / 0.5523 GB, free: 22.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.007214, allocations: 4 kB / 0.5523 GB, free: 22.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.007379, allocations: 65.31 kB / 0.5523 GB, free: 22.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.007384, allocations: 4 kB / 0.5523 GB, free: 22.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.457e-05/0.007468, allocations: 19.92 kB / 0.5524 GB, free: 22.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.007481, allocations: 12 kB / 0.5524 GB, free: 22.01 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.57e-05/0.007576, allocations: 167.7 kB / 0.5525 GB, free: 21.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.007598, allocations: 19.98 kB / 0.5526 GB, free: 21.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/0.007627, allocations: 25.95 kB / 0.5526 GB, free: 21.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.007629, allocations: 0 / 0.5526 GB, free: 21.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.007631, allocations: 0 / 0.5526 GB, free: 21.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.007635, allocations: 0 / 0.5526 GB, free: 21.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.007885, allocations: 385 kB / 0.5529 GB, free: 21.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.007887, allocations: 3.938 kB / 0.553 GB, free: 21.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.008011, allocations: 47.91 kB / 0.553 GB, free: 21.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.923e-05/0.00803, allocations: 19.86 kB / 0.553 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.008032, allocations: 0 / 0.553 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.008044, allocations: 11.98 kB / 0.553 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.008046, allocations: 0 / 0.553 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.008047, allocations: 0 / 0.553 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000179/0.008226, allocations: 345 kB / 0.5534 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.00825, allocations: 8 kB / 0.5534 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.173e-05/0.008332, allocations: 12 kB / 0.5534 GB, free: 20.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.008377, allocations: 15.95 kB / 0.5534 GB, free: 20.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.008387, allocations: 15.25 kB / 0.5534 GB, free: 20.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.279e-05/0.00843, allocations: 69.94 kB / 0.5535 GB, free: 20.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00843, allocations: 4 kB / 0.5535 GB, free: 20.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001683/0.008598, allocations: 52 kB / 0.5535 GB, free: 20.74 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.951e-05/0.008668, allocations: 92.36 kB / 0.5536 GB, free: 20.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001622/0.00883, allocations: 319.4 kB / 0.5539 GB, free: 20.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.008834, allocations: 0 / 0.5539 GB, free: 20.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.443e-05/0.008898, allocations: 146.3 kB / 0.5541 GB, free: 20.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.009137, allocations: 89.56 kB / 0.5541 GB, free: 20.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005705/0.01484, allocations: 0.5827 MB / 0.5547 GB, free: 19.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.43e-05/0.01491, allocations: 125.6 kB / 0.5548 GB, free: 19.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.01509, allocations: 119.3 kB / 0.5549 GB, free: 19.17 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/0.0151, allocations: 8 kB / 0.555 GB, free: 19.16 MB / 410.7 MB Notification: Performance of Templates: time 0.003288/0.01838, allocations: 2.924 MB / 0.5578 GB, free: 16.29 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 > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.069926324300468]