Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") translateModel(Chemical.Examples.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1922/0.1922, allocations: 15.28 MB / 306.4 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002994, allocations: 15.98 kB / 371.5 MB, free: 3.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2714, allocations: 54.62 MB / 426.1 MB, free: 40.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.00531/0.2767, allocations: 7.064 MB / 433.2 MB, free: 38.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01528/0.292, allocations: 19.99 MB / 453.2 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.2932, allocations: 27.34 kB / 453.2 MB, free: 23.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009953/0.2942, allocations: 418.5 kB / 453.6 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00355/0.2977, allocations: 1.514 MB / 455.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005882/0.3036, allocations: 2.272 MB / 457.4 MB, free: 21.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001947/0.3056, allocations: 1.656 MB / 459 MB, free: 20.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007686/0.3064, allocations: 0.7285 MB / 459.8 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006922/0.3071, allocations: 0.6839 MB / 460.4 MB, free: 20.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007941/0.3079, allocations: 0.8448 MB / 461.3 MB, free: 19.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.308, allocations: 78.22 kB / 461.4 MB, free: 19.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006409/0.3144, allocations: 2.186 MB / 463.6 MB, free: 19.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.3147, allocations: 280.9 kB / 463.8 MB, free: 19.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004264/0.3152, allocations: 277 kB / 464.1 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005124/0.3203, allocations: 3.107 MB / 467.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3203, allocations: 0 / 467.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3203, allocations: 0 / 467.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.821e-05/0.3204, allocations: 5.156 kB / 467.2 MB, free: 17.77 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.003986/0.3244, allocations: 1.766 MB / 469 MB, free: 16.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3244, allocations: 10.23 kB / 469 MB, free: 16.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001549/0.326, allocations: 387.7 kB / 469.4 MB, free: 16.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.327, allocations: 0.6832 MB / 470 MB, free: 16.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.158e-05/0.3271, allocations: 92.31 kB / 470.1 MB, free: 16.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002004/0.3273, allocations: 127.2 kB / 470.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002693/0.33, allocations: 1.745 MB / 472 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.3301, allocations: 0 / 472 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.3302, allocations: 51 kB / 472.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.725e-05/0.3302, allocations: 38.3 kB / 472.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003325/0.3335, allocations: 2.476 MB / 474.6 MB, free: 14.44 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0073/0.3409, allocations: 5.054 MB / 479.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003338/0.3442, allocations: 2.24 MB / 481.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007894/0.345, allocations: 0.5456 MB / 482.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006018/0.351, allocations: 5.203 MB / 487.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.3511, allocations: 38.67 kB / 487.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.206e-06/0.3511, allocations: 0 / 487.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.01378/0.3649, allocations: 3.411 MB / 491.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.365, allocations: 64.39 kB / 491.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.3661, allocations: 1.284 MB / 492.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.413e-05/0.3662, allocations: 37.7 kB / 492.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.3665, allocations: 0.6843 MB / 493.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.3666, allocations: 327.5 kB / 493.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/0.3667, allocations: 32 kB / 493.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3668, allocations: 414.7 kB / 493.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006108/0.3674, allocations: 0.5076 MB / 494.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000889/0.3683, allocations: 0.9885 MB / 495.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000947/0.3693, allocations: 0.6355 MB / 496 MB, free: 14.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.3693, allocations: 4 kB / 496 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.00457/0.3739, allocations: 1.908 MB / 497.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.3739, allocations: 17.34 kB / 497.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.374, allocations: 16 kB / 498 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002062/0.376, allocations: 261.5 kB / 498.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3772, allocations: 351.5 kB / 498.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00526/0.3825, allocations: 3.52 MB / 0.4903 GB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.3838, allocations: 72.03 kB / 0.4904 GB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.384, allocations: 79.98 kB / 0.4905 GB, free: 8.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005946/0.3846, allocations: 297.8 kB / 0.4907 GB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.3848, allocations: 102.7 kB / 0.4908 GB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003974/0.3888, allocations: 1.266 MB / 0.4921 GB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.3888, allocations: 11.95 kB / 0.4921 GB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3888, allocations: 0 / 0.4921 GB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.3888, allocations: 7.984 kB / 0.4921 GB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.3905, allocations: 1.115 MB / 0.4932 GB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.3905, allocations: 4 kB / 0.4932 GB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006509/0.3912, allocations: 175.7 kB / 0.4934 GB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/0.3931, allocations: 249.5 kB / 0.4936 GB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-05/0.3932, allocations: 35.94 kB / 0.4936 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004735/0.398, allocations: 3.41 MB / 0.497 GB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.398, allocations: 0 / 0.497 GB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004171/0.4022, allocations: 1.611 MB / 0.4985 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004112/0.4026, allocations: 191.7 kB / 0.4987 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.4028, allocations: 24 kB / 0.4987 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000557/0.4033, allocations: 31.92 kB / 0.4988 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.4035, allocations: 72.84 kB / 0.4988 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.506e-05/0.4036, allocations: 43.98 kB / 0.4989 GB, free: 15.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001066/0.4046, allocations: 0.9062 MB / 0.4998 GB, free: 14.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4047, allocations: 0 / 0.4998 GB, free: 14.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00259/0.4073, allocations: 0.8431 MB / 0.5006 GB, free: 13.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (blood_plasma.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,water.logn,others.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001909/0.4092, allocations: 0.9874 MB / 0.5015 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.4115, allocations: 1.405 MB / 0.5029 GB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4115, allocations: 0 / 0.5029 GB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009681/0.4124, allocations: 0.6824 MB / 0.5036 GB, free: 10.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.4136, allocations: 216.5 kB / 0.5038 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.4171, allocations: 2.605 MB / 0.5063 GB, free: 7.477 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006264/0.4178, allocations: 1.089 MB / 0.5074 GB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001116/0.4189, allocations: 268.3 kB / 0.5077 GB, free: 6.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.4192, allocations: 159.1 kB / 0.5078 GB, free: 5.93 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4192, allocations: 0 / 0.5078 GB, free: 5.93 MB / 382.1 MB Notification: Performance of Templates: time 0.0389/0.4581, allocations: 26.06 MB / 0.5333 GB, free: 11.96 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.GasSolubility_blood.makefile (rm -f Chemical_Chemical.Examples.GasSolubility_blood.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_blood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_blood.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_blood.sim & ./Chemical_Chemical.Examples.GasSolubility_blood -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)