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.001967/0.001967, allocations: 109.5 kB / 18.95 MB, free: 1.172 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.002316/0.002316, allocations: 219.6 kB / 22.25 MB, free: 3.559 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 1.761/1.761, allocations: 230.6 MB / 256 MB, free: 9.582 MB / 202.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.458/1.458, allocations: 316.7 MB / 0.6144 GB, free: 93.23 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: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004933/0.004933, allocations: 77.16 kB / 0.775 GB, free: 14.89 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1894, allocations: 73.99 MB / 0.8472 GB, free: 5.039 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate): time 0.004004/0.1934, allocations: 2.304 MB / 0.8495 GB, free: 2.734 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1947, allocations: 0.5909 MB / 0.8501 GB, free: 2.148 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.582e-05/0.1948, allocations: 1.906 kB / 0.8501 GB, free: 2.148 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.1949, allocations: 27.7 kB / 0.8501 GB, free: 2.121 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.1951, allocations: 75.41 kB / 0.8502 GB, free: 2.047 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.1953, allocations: 52.44 kB / 0.8502 GB, free: 1.996 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003727/0.1957, allocations: 261.1 kB / 0.8505 GB, free: 1.742 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.1958, allocations: 36.58 kB / 0.8505 GB, free: 1.707 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.196, allocations: 91.59 kB / 0.8506 GB, free: 1.617 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.1962, allocations: 103.5 kB / 0.8507 GB, free: 1.516 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 3.741e-05/0.1963, allocations: 16 kB / 0.8507 GB, free: 1.5 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.684e-05/0.1963, allocations: 20 kB / 0.8507 GB, free: 1.48 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 5.249e-05/0.1964, allocations: 37.81 kB / 0.8507 GB, free: 1.445 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.1965, allocations: 95.52 kB / 0.8508 GB, free: 1.352 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.1968, allocations: 193.8 kB / 0.851 GB, free: 1.164 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1968, allocations: 0 / 0.851 GB, free: 1.164 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1968, allocations: 0 / 0.851 GB, free: 1.164 MB / 474.8 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1968, allocations: 1.281 kB / 0.851 GB, free: 1.164 MB / 474.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.001016/0.1978, allocations: 0.4979 MB / 0.8515 GB, free: 0.6211 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1979, allocations: 8.031 kB / 0.8515 GB, free: 0.6133 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.551e-05/0.198, allocations: 25.39 kB / 0.8515 GB, free: 0.5898 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.1983, allocations: 187.1 kB / 0.8517 GB, free: 388 kB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.1983, allocations: 9.359 kB / 0.8517 GB, free: 380 kB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.876e-05/0.1983, allocations: 23.89 kB / 0.8518 GB, free: 356 kB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.1987, allocations: 190.6 kB / 0.8519 GB, free: 152 kB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1988, allocations: 0.8125 kB / 0.8519 GB, free: 152 kB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.1988, allocations: 8 kB / 0.8519 GB, free: 144 kB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.1988, allocations: 4.562 kB / 0.8519 GB, free: 140 kB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.1992, allocations: 147.5 kB / 0.8521 GB, free: 15.98 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.2004, allocations: 482.5 kB / 0.8525 GB, free: 15.48 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005635/0.201, allocations: 169.4 kB / 0.8527 GB, free: 15.3 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.2012, allocations: 95.02 kB / 0.8528 GB, free: 15.2 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.2012, allocations: 4.562 kB / 0.8528 GB, free: 15.2 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000413/0.2016, allocations: 227.2 kB / 0.853 GB, free: 14.95 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.433e-06/0.2016, allocations: 0.7188 kB / 0.853 GB, free: 14.95 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001685/0.2033, allocations: 0.7024 MB / 0.8537 GB, free: 14.19 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.2034, allocations: 142.7 kB / 0.8538 GB, free: 14.02 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.2037, allocations: 219 kB / 0.8541 GB, free: 13.8 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.2037, allocations: 33.7 kB / 0.8541 GB, free: 13.76 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2038, allocations: 128.5 kB / 0.8542 GB, free: 13.63 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.531e-05/0.2039, allocations: 67.42 kB / 0.8543 GB, free: 13.56 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.204, allocations: 57.66 kB / 0.8543 GB, free: 13.5 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.2042, allocations: 343.5 kB / 0.8547 GB, free: 13.16 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.2045, allocations: 145 kB / 0.8548 GB, free: 13 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.2048, allocations: 223.4 kB / 0.855 GB, free: 12.73 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005085/0.2054, allocations: 278.3 kB / 0.8553 GB, free: 12.42 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2054, allocations: 1.719 kB / 0.8553 GB, free: 12.42 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.3405/0.5458, allocations: 387.4 kB / 0.8556 GB, free: 28.26 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.53e-05/0.5459, allocations: 69.66 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.5459, allocations: 3.984 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.345e-05/0.5459, allocations: 3.938 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.5462, allocations: 51.45 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.5462, allocations: 3.812 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.5464, allocations: 21.44 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.5465, allocations: 10.09 kB / 0.8558 GB, free: 28.2 MB / 490.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.0002088/0.5467, allocations: 177.3 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.5467, allocations: 26.09 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.812e-05/0.5468, allocations: 27.44 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.5468, allocations: 3.531 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5468, allocations: 0.9844 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.5468, allocations: 2.016 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007516/0.5475, allocations: 0.5385 MB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.5475, allocations: 4.719 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.5477, allocations: 32.78 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.5477, allocations: 0 / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.5478, allocations: 6.703 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.5478, allocations: 3.844 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5478, allocations: 1.344 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006722/0.5484, allocations: 0.4911 MB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.701e-05/0.5485, allocations: 22.09 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.206e-05/0.5485, allocations: 6.094 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.5487, allocations: 16.09 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.5488, allocations: 19.95 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.5488, allocations: 10.91 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001271/0.5489, allocations: 164.2 kB / 0.8573 GB, free: 27.45 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.5489, allocations: 0 / 0.8573 GB, free: 27.45 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002835/0.5492, allocations: 53.91 kB / 0.8574 GB, free: 27.45 MB / 490.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.0001174/0.5493, allocations: 109.9 kB / 0.8575 GB, free: 27.36 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.000537/0.5498, allocations: 385.3 kB / 0.8578 GB, free: 27.14 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5498, allocations: 1.797 kB / 0.8578 GB, free: 27.14 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.5501, allocations: 173.5 kB / 0.858 GB, free: 27.04 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.5505, allocations: 65.45 kB / 0.8581 GB, free: 27.04 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.5518, allocations: 0.6727 MB / 0.8587 GB, free: 26.77 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.549e-05/0.5519, allocations: 126.8 kB / 0.8588 GB, free: 26.69 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 9.921e-05/0.552, allocations: 24.67 kB / 0.8589 GB, free: 26.69 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.511e-05/0.5521, allocations: 24.92 kB / 0.8589 GB, free: 26.68 MB / 490.8 MB Notification: Performance of SimCode: time 8.92e-07/0.5521, allocations: 0 / 0.8589 GB, free: 26.68 MB / 490.8 MB Notification: Performance of Templates: time 0.008317/0.5604, allocations: 3.647 MB / 0.8624 GB, free: 26.39 MB / 490.8 MB " [Timeout remaining time 659] 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.762251355918124]