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.001461/0.001461, allocations: 104.3 kB / 19.71 MB, free: 436 kB / 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.001553/0.001553, allocations: 216.7 kB / 23 MB, free: 2.98 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.004/1.004, allocations: 230.6 MB / 256.8 MB, free: 9.613 MB / 202.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.7007/0.7007, allocations: 312.3 MB / 0.6108 GB, free: 97.63 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: 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.002177/0.002177, allocations: 73.61 kB / 0.7699 GB, free: 20.2 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.137, allocations: 73.99 MB / 0.8421 GB, free: 10.34 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate): time 0.002553/0.1395, allocations: 2.302 MB / 0.8444 GB, free: 8.035 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.0008422/0.1404, allocations: 0.603 MB / 0.845 GB, free: 7.438 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.658e-05/0.1405, allocations: 0 / 0.845 GB, free: 7.438 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.1406, allocations: 28.34 kB / 0.845 GB, free: 7.41 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.1407, allocations: 80.55 kB / 0.8451 GB, free: 7.332 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.1409, allocations: 56.48 kB / 0.8451 GB, free: 7.277 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.000213/0.1411, allocations: 246.8 kB / 0.8454 GB, free: 7.035 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.1413, allocations: 37.08 kB / 0.8454 GB, free: 7 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.1414, allocations: 96.25 kB / 0.8455 GB, free: 6.906 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.1415, allocations: 100 kB / 0.8456 GB, free: 6.809 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.454e-05/0.1416, allocations: 20 kB / 0.8456 GB, free: 6.789 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.455e-05/0.1416, allocations: 16.72 kB / 0.8456 GB, free: 6.773 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.084e-05/0.1416, allocations: 35.84 kB / 0.8457 GB, free: 6.738 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 0.000336/0.142, allocations: 88.12 kB / 0.8457 GB, free: 6.652 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.1421, allocations: 204 kB / 0.8459 GB, free: 6.453 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1422, allocations: 4 kB / 0.8459 GB, free: 6.449 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1422, allocations: 0.5625 kB / 0.8459 GB, free: 6.449 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1422, allocations: 0 / 0.8459 GB, free: 6.449 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.0006078/0.1428, allocations: 498.7 kB / 0.8464 GB, free: 5.918 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.1428, allocations: 8.031 kB / 0.8464 GB, free: 5.91 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.1428, allocations: 25.42 kB / 0.8464 GB, free: 5.887 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.143, allocations: 191.5 kB / 0.8466 GB, free: 5.672 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.143, allocations: 8.609 kB / 0.8466 GB, free: 5.664 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.1431, allocations: 20.39 kB / 0.8467 GB, free: 5.645 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002353/0.1433, allocations: 190.9 kB / 0.8468 GB, free: 5.441 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1433, allocations: 8.562 kB / 0.8468 GB, free: 5.434 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.1433, allocations: 4.625 kB / 0.8468 GB, free: 5.43 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1433, allocations: 4 kB / 0.8469 GB, free: 5.426 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.1435, allocations: 143.5 kB / 0.847 GB, free: 5.281 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005266/0.1441, allocations: 486.7 kB / 0.8475 GB, free: 4.773 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003177/0.1444, allocations: 183.8 kB / 0.8476 GB, free: 4.586 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.1445, allocations: 95.05 kB / 0.8477 GB, free: 4.484 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.1445, allocations: 4.531 kB / 0.8477 GB, free: 4.48 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.1447, allocations: 223 kB / 0.8479 GB, free: 4.234 MB / 474.8 MB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.1447, allocations: 0.5312 kB / 0.8479 GB, free: 4.234 MB / 474.8 MB Notification: Performance of matching and sorting (n=21): time 0.0008887/0.1456, allocations: 0.6962 MB / 0.8486 GB, free: 3.477 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1456, allocations: 137.1 kB / 0.8487 GB, free: 3.312 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.1458, allocations: 215 kB / 0.849 GB, free: 3.094 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1458, allocations: 34.23 kB / 0.849 GB, free: 3.055 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.1459, allocations: 133.1 kB / 0.8491 GB, free: 2.922 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/0.1459, allocations: 75.41 kB / 0.8492 GB, free: 2.848 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.146, allocations: 58.22 kB / 0.8492 GB, free: 2.785 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 7.578e-05/0.146, allocations: 338.8 kB / 0.8496 GB, free: 2.445 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.1462, allocations: 145.6 kB / 0.8497 GB, free: 2.285 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.1463, allocations: 222.1 kB / 0.8499 GB, free: 2.023 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.1466, allocations: 285.3 kB / 0.8502 GB, free: 1.707 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1466, allocations: 0 / 0.8502 GB, free: 1.707 MB / 474.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003627/0.1469, allocations: 386.5 kB / 0.8506 GB, free: 1.301 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.147, allocations: 70.39 kB / 0.8506 GB, free: 1.223 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.147, allocations: 0.625 kB / 0.8506 GB, free: 1.223 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.147, allocations: 4 kB / 0.8506 GB, free: 1.219 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.1471, allocations: 52.62 kB / 0.8507 GB, free: 1.168 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.1471, allocations: 8.5 kB / 0.8507 GB, free: 1.16 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.325e-05/0.1472, allocations: 20.48 kB / 0.8507 GB, free: 1.141 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.1472, allocations: 16.5 kB / 0.8507 GB, free: 1.125 MB / 474.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.0001486/0.1474, allocations: 178.1 kB / 0.8509 GB, free: 0.9375 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.174e-05/0.1474, allocations: 24.36 kB / 0.8509 GB, free: 0.9141 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.1474, allocations: 21.95 kB / 0.8509 GB, free: 0.8867 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1474, allocations: 4.625 kB / 0.8509 GB, free: 0.8828 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1474, allocations: 0 / 0.8509 GB, free: 0.8828 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1474, allocations: 0.625 kB / 0.8509 GB, free: 0.8828 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004732/0.1479, allocations: 0.544 MB / 0.8515 GB, free: 300 kB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1479, allocations: 0.5938 kB / 0.8515 GB, free: 300 kB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.915e-05/0.148, allocations: 44.5 kB / 0.8515 GB, free: 256 kB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.148, allocations: 0.625 kB / 0.8515 GB, free: 256 kB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.148, allocations: 4 kB / 0.8515 GB, free: 252 kB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.148, allocations: 4.562 kB / 0.8515 GB, free: 248 kB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.148, allocations: 0 / 0.8515 GB, free: 248 kB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004448/0.1485, allocations: 0.4902 MB / 0.852 GB, free: 15.72 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.383e-05/0.1485, allocations: 20.52 kB / 0.852 GB, free: 15.7 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.1485, allocations: 12.62 kB / 0.852 GB, free: 15.69 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.897e-05/0.1486, allocations: 16.55 kB / 0.852 GB, free: 15.67 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.1487, allocations: 19.97 kB / 0.8521 GB, free: 15.65 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.1487, allocations: 8.672 kB / 0.8521 GB, free: 15.64 MB / 490.8 MB Notification: Performance of sorting global known variables: time 8.837e-05/0.1488, allocations: 156.4 kB / 0.8522 GB, free: 15.49 MB / 490.8 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1488, allocations: 0.7188 kB / 0.8522 GB, free: 15.49 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001826/0.1489, allocations: 60 kB / 0.8523 GB, free: 15.43 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 9.423e-05/0.149, allocations: 112.5 kB / 0.8524 GB, free: 15.31 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005691/0.1496, allocations: 384 kB / 0.8528 GB, free: 14.9 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1496, allocations: 0.5625 kB / 0.8528 GB, free: 14.9 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.1497, allocations: 165.7 kB / 0.8529 GB, free: 14.72 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.15, allocations: 74.53 kB / 0.853 GB, free: 14.65 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008237/0.1509, allocations: 0.6989 MB / 0.8537 GB, free: 14 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.761e-05/0.1509, allocations: 129.5 kB / 0.8538 GB, free: 13.86 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.652e-05/0.151, allocations: 23.44 kB / 0.8538 GB, free: 13.84 MB / 490.8 MB Notification: Performance of SimCode: time 4.81e-07/0.151, allocations: 0 / 0.8538 GB, free: 13.84 MB / 490.8 MB Notification: Performance of Templates: time 0.2129/0.3639, allocations: 2.929 MB / 0.8567 GB, free: 29.75 MB / 490.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 > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.850540269166231]