Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.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.001046/0.001046, allocations: 104.3 kB / 19.71 MB, free: 440 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.001717/0.001717, allocations: 217.3 kB / 23 MB, free: 2.965 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.9794/0.9794, allocations: 230.7 MB / 256.8 MB, free: 9.602 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.7229/0.7229, allocations: 312.3 MB / 0.6108 GB, free: 97.05 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_Chuan2001_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference") translateModel(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference") [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.001453/0.001453, allocations: 81.91 kB / 0.7699 GB, free: 19.7 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1142, allocations: 74 MB / 0.8421 GB, free: 9.824 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference): time 0.002441/0.1166, allocations: 2.283 MB / 0.8444 GB, free: 7.547 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.0007251/0.1173, allocations: 0.5912 MB / 0.8449 GB, free: 6.961 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.429e-05/0.1174, allocations: 4 kB / 0.8449 GB, free: 6.957 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.1175, allocations: 24.28 kB / 0.845 GB, free: 6.934 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.1177, allocations: 80.53 kB / 0.845 GB, free: 6.855 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001695/0.1179, allocations: 48.44 kB / 0.8451 GB, free: 6.809 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.1181, allocations: 263.2 kB / 0.8453 GB, free: 6.551 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.1182, allocations: 32.52 kB / 0.8454 GB, free: 6.52 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 9.754e-05/0.1183, allocations: 100.2 kB / 0.8455 GB, free: 6.422 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001709/0.1185, allocations: 96.11 kB / 0.8456 GB, free: 6.328 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.1185, allocations: 16 kB / 0.8456 GB, free: 6.312 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.581e-05/0.1185, allocations: 16.72 kB / 0.8456 GB, free: 6.297 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.394e-05/0.1186, allocations: 44.52 kB / 0.8456 GB, free: 6.254 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 6.977e-05/0.1186, allocations: 87.59 kB / 0.8457 GB, free: 6.168 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.1188, allocations: 203.8 kB / 0.8459 GB, free: 5.969 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1188, allocations: 0 / 0.8459 GB, free: 5.969 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1188, allocations: 0.625 kB / 0.8459 GB, free: 5.969 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1188, allocations: 0 / 0.8459 GB, free: 5.969 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.0006083/0.1194, allocations: 494.5 kB / 0.8464 GB, free: 5.441 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1195, allocations: 12.59 kB / 0.8464 GB, free: 5.43 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.1195, allocations: 29.41 kB / 0.8464 GB, free: 5.402 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.1197, allocations: 183.1 kB / 0.8466 GB, free: 5.195 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1197, allocations: 13.09 kB / 0.8466 GB, free: 5.184 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.1198, allocations: 24.61 kB / 0.8466 GB, free: 5.16 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002329/0.12, allocations: 186.9 kB / 0.8468 GB, free: 4.961 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.12, allocations: 0 / 0.8468 GB, free: 4.961 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.12, allocations: 8.562 kB / 0.8468 GB, free: 4.953 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.12, allocations: 4.516 kB / 0.8468 GB, free: 4.949 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.1202, allocations: 146.8 kB / 0.847 GB, free: 4.801 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007817/0.121, allocations: 486.8 kB / 0.8474 GB, free: 4.293 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.1213, allocations: 173.4 kB / 0.8476 GB, free: 4.109 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1214, allocations: 91.14 kB / 0.8477 GB, free: 4.012 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.826e-06/0.1214, allocations: 4.594 kB / 0.8477 GB, free: 4.008 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.1216, allocations: 229.8 kB / 0.8479 GB, free: 3.754 MB / 474.8 MB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.1216, allocations: 0 / 0.8479 GB, free: 3.754 MB / 474.8 MB Notification: Performance of matching and sorting (n=21): time 0.000884/0.1225, allocations: 0.7087 MB / 0.8486 GB, free: 2.984 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.1226, allocations: 141.1 kB / 0.8487 GB, free: 2.816 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.1227, allocations: 215 kB / 0.8489 GB, free: 2.598 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.1227, allocations: 30.48 kB / 0.849 GB, free: 2.562 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.1228, allocations: 136.5 kB / 0.8491 GB, free: 2.426 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/0.1228, allocations: 68.03 kB / 0.8492 GB, free: 2.359 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.1229, allocations: 61.64 kB / 0.8492 GB, free: 2.293 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.123, allocations: 331.3 kB / 0.8495 GB, free: 1.961 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.1231, allocations: 145.6 kB / 0.8497 GB, free: 1.801 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.1232, allocations: 225.9 kB / 0.8499 GB, free: 1.535 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.1235, allocations: 282.1 kB / 0.8502 GB, free: 1.223 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1235, allocations: 0 / 0.8502 GB, free: 1.223 MB / 474.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003423/0.1238, allocations: 389.1 kB / 0.8505 GB, free: 0.8164 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.1239, allocations: 71.78 kB / 0.8506 GB, free: 0.7344 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1239, allocations: 4.562 kB / 0.8506 GB, free: 0.7305 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1239, allocations: 0 / 0.8506 GB, free: 0.7305 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.124, allocations: 52.5 kB / 0.8507 GB, free: 0.6797 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.124, allocations: 8.516 kB / 0.8507 GB, free: 0.6719 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.58e-05/0.1241, allocations: 16.61 kB / 0.8507 GB, free: 0.6562 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.1241, allocations: 12.59 kB / 0.8507 GB, free: 0.6445 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.0001447/0.1242, allocations: 172.9 kB / 0.8509 GB, free: 472 kB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.1243, allocations: 28.42 kB / 0.8509 GB, free: 444 kB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.176e-05/0.1243, allocations: 21.97 kB / 0.8509 GB, free: 416 kB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1243, allocations: 4.562 kB / 0.8509 GB, free: 412 kB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1243, allocations: 8.484 kB / 0.8509 GB, free: 404 kB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1243, allocations: 0 / 0.8509 GB, free: 404 kB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004767/0.1248, allocations: 0.5341 MB / 0.8514 GB, free: 15.81 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1248, allocations: 0.6875 kB / 0.8514 GB, free: 15.81 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.816e-05/0.1249, allocations: 35.91 kB / 0.8515 GB, free: 15.78 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1249, allocations: 4.625 kB / 0.8515 GB, free: 15.77 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.1249, allocations: 4.625 kB / 0.8515 GB, free: 15.77 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1249, allocations: 11.94 kB / 0.8515 GB, free: 15.76 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1249, allocations: 0.6875 kB / 0.8515 GB, free: 15.76 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.1253, allocations: 499.1 kB / 0.852 GB, free: 15.24 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.578e-05/0.1254, allocations: 20.48 kB / 0.852 GB, free: 15.22 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.1254, allocations: 12.03 kB / 0.852 GB, free: 15.21 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.655e-05/0.1255, allocations: 8.609 kB / 0.852 GB, free: 15.2 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.1255, allocations: 24.75 kB / 0.852 GB, free: 15.18 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.1255, allocations: 8 kB / 0.852 GB, free: 15.17 MB / 490.8 MB Notification: Performance of sorting global known variables: time 8.543e-05/0.1256, allocations: 164.9 kB / 0.8522 GB, free: 15.01 MB / 490.8 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1256, allocations: 0 / 0.8522 GB, free: 15.01 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001793/0.1258, allocations: 52.62 kB / 0.8522 GB, free: 14.96 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 8.589e-05/0.1259, allocations: 116 kB / 0.8524 GB, free: 14.83 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.000337/0.1262, allocations: 389.7 kB / 0.8527 GB, free: 14.41 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.1262, allocations: 0.75 kB / 0.8527 GB, free: 14.41 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.1263, allocations: 173.8 kB / 0.8529 GB, free: 14.23 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.1266, allocations: 67.83 kB / 0.853 GB, free: 14.16 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008166/0.1274, allocations: 0.707 MB / 0.8536 GB, free: 13.5 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.971e-05/0.1275, allocations: 125.5 kB / 0.8538 GB, free: 13.36 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003021/0.1278, allocations: 23.44 kB / 0.8538 GB, free: 13.33 MB / 490.8 MB Notification: Performance of SimCode: time 4.11e-07/0.1278, allocations: 4 kB / 0.8538 GB, free: 13.33 MB / 490.8 MB Notification: Performance of Templates: time 0.2139/0.3418, allocations: 2.931 MB / 0.8567 GB, free: 28.67 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A06A_DrugsForConstipation.A06AD04_MagnesiumSulfate.MagnesiumSulfate_Chuan2001_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.968337701633573]