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.0007286/0.0007286, allocations: 84.17 kB / 9.886 MB, free: 0.8008 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009819/0.001711, allocations: 435.8 kB / 10.31 MB, free: 384 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.0007534/0.0007534, allocations: 157.1 kB / 11.2 MB, free: 2.973 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001415/0.002168, allocations: 463.6 kB / 11.65 MB, free: 2.516 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.9859/0.9859, allocations: 177.1 MB / 189.5 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1029/1.089, 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.7172/0.7172, allocations: 291.2 MB / 0.5226 GB, free: 52.94 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02953/0.7467, allocations: 21.04 MB / 0.5431 GB, free: 31.96 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.552e-06/1.552e-06, allocations: 0 / 0.5445 GB, free: 30.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.855e-05/3.011e-05, allocations: 6.25 kB / 0.5445 GB, free: 30.58 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate): time 0.003106/0.003136, allocations: 2.488 MB / 0.5469 GB, free: 28.08 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.004168, allocations: 0.6232 MB / 0.5475 GB, free: 27.46 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.004274, allocations: 7.938 kB / 0.5475 GB, free: 27.45 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.768e-05/0.004362, allocations: 23.72 kB / 0.5475 GB, free: 27.43 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001854/0.004547, allocations: 79.33 kB / 0.5476 GB, free: 27.35 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001665/0.004714, allocations: 59.73 kB / 0.5477 GB, free: 27.29 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.004988, allocations: 266.6 kB / 0.5479 GB, free: 27.03 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.005113, allocations: 42.55 kB / 0.548 GB, free: 26.99 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.005325, allocations: 168.2 kB / 0.5481 GB, free: 26.82 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.005507, allocations: 91.7 kB / 0.5482 GB, free: 26.73 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.005539, allocations: 16 kB / 0.5482 GB, free: 26.72 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.44e-05/0.005574, allocations: 16 kB / 0.5483 GB, free: 26.7 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.315e-05/0.005607, allocations: 27.88 kB / 0.5483 GB, free: 26.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.5e-05/0.005682, allocations: 63.88 kB / 0.5483 GB, free: 26.61 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.005877, allocations: 135.5 kB / 0.5485 GB, free: 26.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.072e-05/0.005897, allocations: 0 / 0.5485 GB, free: 26.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.005899, allocations: 0 / 0.5485 GB, free: 26.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.00591, allocations: 0 / 0.5485 GB, free: 26.48 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.0006759/0.006586, allocations: 0.5054 MB / 0.549 GB, free: 25.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.00662, allocations: 11.89 kB / 0.549 GB, free: 25.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.788e-05/0.006677, allocations: 20.92 kB / 0.549 GB, free: 25.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.006882, allocations: 183 kB / 0.5492 GB, free: 25.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.006908, allocations: 12.61 kB / 0.5492 GB, free: 25.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/0.006936, allocations: 8.375 kB / 0.5492 GB, free: 25.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.007169, allocations: 167.4 kB / 0.5494 GB, free: 25.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.007183, allocations: 7.938 kB / 0.5494 GB, free: 25.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.007197, allocations: 8 kB / 0.5494 GB, free: 25.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.007203, allocations: 0 / 0.5494 GB, free: 25.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.007318, allocations: 76.7 kB / 0.5494 GB, free: 25.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005531/0.007871, allocations: 365 kB / 0.5498 GB, free: 25.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.008101, allocations: 116 kB / 0.5499 GB, free: 24.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.412e-05/0.008155, allocations: 54.56 kB / 0.5499 GB, free: 24.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.008166, allocations: 8 kB / 0.55 GB, free: 24.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.00835, allocations: 195.8 kB / 0.5501 GB, free: 24.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.923e-06/0.008352, allocations: 0 / 0.5501 GB, free: 24.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007518/0.009104, allocations: 0.5005 MB / 0.5506 GB, free: 24.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.009147, allocations: 136.5 kB / 0.5508 GB, free: 23.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.009271, allocations: 210 kB / 0.551 GB, free: 23.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.009288, allocations: 37.64 kB / 0.551 GB, free: 23.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.59e-05/0.009334, allocations: 124.4 kB / 0.5511 GB, free: 23.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.207e-05/0.009386, allocations: 67.47 kB / 0.5512 GB, free: 23.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.49e-05/0.009451, allocations: 51.17 kB / 0.5512 GB, free: 23.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.376e-05/0.009495, allocations: 338.8 kB / 0.5516 GB, free: 23.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.236e-05/0.009577, allocations: 93.02 kB / 0.5516 GB, free: 22.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.317e-05/0.00967, allocations: 173.3 kB / 0.5518 GB, free: 22.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001526/0.009823, allocations: 213.6 kB / 0.552 GB, free: 22.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.009827, allocations: 4 kB / 0.552 GB, free: 22.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002289/0.01006, allocations: 256.2 kB / 0.5523 GB, free: 22.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.01009, allocations: 67.39 kB / 0.5523 GB, free: 22.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.0101, allocations: 10.67 kB / 0.5523 GB, free: 22.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.01011, allocations: 4.219 kB / 0.5523 GB, free: 22.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002387/0.01035, allocations: 69.86 kB / 0.5524 GB, free: 22.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.01036, allocations: 4 kB / 0.5524 GB, free: 22.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.01049, allocations: 15.94 kB / 0.5524 GB, free: 22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.01051, allocations: 11.98 kB / 0.5524 GB, free: 21.99 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 0.0001282/0.01063, allocations: 166.1 kB / 0.5526 GB, free: 21.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.01067, allocations: 23.97 kB / 0.5526 GB, free: 21.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.01071, allocations: 25.97 kB / 0.5526 GB, free: 21.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.01071, allocations: 4 kB / 0.5526 GB, free: 21.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.01072, allocations: 0 / 0.5526 GB, free: 21.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.01072, allocations: 3.984 kB / 0.5526 GB, free: 21.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.01107, allocations: 385 kB / 0.553 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.01107, allocations: 3.938 kB / 0.553 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.01126, allocations: 35.97 kB / 0.5531 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.293e-05/0.01129, allocations: 19.86 kB / 0.5531 GB, free: 21.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.0113, allocations: 0 / 0.5531 GB, free: 21.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.01131, allocations: 15.98 kB / 0.5531 GB, free: 21.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.01132, allocations: 3 kB / 0.5531 GB, free: 21.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.01132, allocations: 0 / 0.5531 GB, free: 21.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002679/0.01159, allocations: 345 kB / 0.5534 GB, free: 20.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.01162, allocations: 8 kB / 0.5534 GB, free: 20.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.01175, allocations: 15.98 kB / 0.5534 GB, free: 20.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.517e-05/0.01181, allocations: 15.97 kB / 0.5535 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.01182, allocations: 7.938 kB / 0.5535 GB, free: 20.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.5e-05/0.01188, allocations: 65.95 kB / 0.5535 GB, free: 20.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01188, allocations: 0 / 0.5535 GB, free: 20.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002576/0.01214, allocations: 56 kB / 0.5536 GB, free: 20.73 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 9.813e-05/0.01224, allocations: 104.3 kB / 0.5537 GB, free: 20.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002158/0.01245, allocations: 304.5 kB / 0.554 GB, free: 20.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.01246, allocations: 3.938 kB / 0.554 GB, free: 20.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.771e-05/0.01256, allocations: 148.1 kB / 0.5541 GB, free: 20.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.01291, allocations: 94.25 kB / 0.5542 GB, free: 20.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007965/0.02087, allocations: 0.5705 MB / 0.5548 GB, free: 19.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.214e-05/0.0209, allocations: 80.33 kB / 0.5548 GB, free: 19.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.55e-05/0.021, allocations: 25.94 kB / 0.5549 GB, free: 19.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.02112, allocations: 111.3 kB / 0.555 GB, free: 19.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/0.02112, allocations: 4 kB / 0.555 GB, free: 19.18 MB / 410.7 MB Notification: Performance of Templates: time 0.006071/0.02719, allocations: 3.791 MB / 0.5587 GB, free: 15.54 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.483810975216329]