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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.07942/0.07942, allocations: 15.29 MB / 31.09 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 198 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 264 MB, free: 4.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009894/0.0009893, allocations: 105 kB / 318.4 MB, free: 3.449 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 58.86 kB / 382.7 MB, free: 48.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.09122, allocations: 53.62 MB / 436.3 MB, free: 1.051 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007918/0.09917, allocations: 7.957 MB / 444.3 MB, free: 9.055 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02192/0.1211, allocations: 21.58 MB / 465.9 MB, free: 3.395 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.1223, allocations: 27.81 kB / 465.9 MB, free: 3.367 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001109/0.1234, allocations: 413.6 kB / 466.3 MB, free: 2.961 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003631/0.1271, allocations: 1.432 MB / 467.7 MB, free: 1.52 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006312/0.1334, allocations: 2.452 MB / 470.2 MB, free: 15.05 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002098/0.1355, allocations: 1.757 MB / 471.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008578/0.1364, allocations: 0.7838 MB / 472.7 MB, free: 12.49 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008231/0.1372, allocations: 0.8335 MB / 473.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009308/0.1381, allocations: 0.9265 MB / 474.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001766/0.1383, allocations: 96 kB / 474.6 MB, free: 10.63 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006049/0.1444, allocations: 2.222 MB / 476.8 MB, free: 8.402 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003373/0.1447, allocations: 306.9 kB / 477.1 MB, free: 8.102 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007259/0.1455, allocations: 0.7465 MB / 477.8 MB, free: 7.352 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006709/0.1522, allocations: 3.811 MB / 481.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1522, allocations: 0 / 481.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1522, allocations: 0 / 481.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.1523, allocations: 0 / 481.7 MB, free: 3.527 MB / 346.7 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.003368/0.1556, allocations: 2.07 MB / 483.7 MB, free: 1.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1557, allocations: 12.88 kB / 483.7 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.1571, allocations: 378.4 kB / 484.1 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.1581, allocations: 0.7328 MB / 484.8 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.84e-05/0.1582, allocations: 94.84 kB / 484.9 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001979/0.1584, allocations: 132.2 kB / 485.1 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00266/0.1611, allocations: 1.76 MB / 486.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.1611, allocations: 0 / 486.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.1612, allocations: 55.94 kB / 486.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.1613, allocations: 28 kB / 486.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003188/0.1645, allocations: 2.485 MB / 489.4 MB, free: 11.64 MB / 362.7 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.00777/0.1722, allocations: 5.095 MB / 494.5 MB, free: 6.355 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003198/0.1755, allocations: 2.242 MB / 496.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00075/0.1762, allocations: 0.5538 MB / 497.3 MB, free: 3.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006736/0.183, allocations: 5.316 MB / 0.4908 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.183, allocations: 39.22 kB / 0.4909 GB, free: 13.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 2.084e-06/0.183, allocations: 0 / 0.4909 GB, free: 13.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=89): time 0.01389/0.1969, allocations: 3.367 MB / 0.4941 GB, free: 10.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.197, allocations: 64.41 kB / 0.4942 GB, free: 9.965 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.1984, allocations: 1.296 MB / 0.4955 GB, free: 8.645 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.596e-05/0.1985, allocations: 41.7 kB / 0.4955 GB, free: 8.598 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004151/0.1989, allocations: 0.6843 MB / 0.4962 GB, free: 7.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/0.1991, allocations: 315.5 kB / 0.4965 GB, free: 7.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003744/0.1995, allocations: 291.3 kB / 0.4968 GB, free: 7.297 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1997, allocations: 357.9 kB / 0.4971 GB, free: 6.941 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007281/0.2004, allocations: 0.5076 MB / 0.4976 GB, free: 6.434 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.2014, allocations: 1.008 MB / 0.4986 GB, free: 5.211 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.2031, allocations: 1.43 MB / 0.5 GB, free: 3.566 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/0.2031, allocations: 4 kB / 0.5 GB, free: 3.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004291/0.2074, allocations: 1.912 MB / 0.5018 GB, free: 1.633 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.2075, allocations: 12 kB / 0.5019 GB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/0.2075, allocations: 16 kB / 0.5019 GB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/0.2094, allocations: 253.5 kB / 0.5021 GB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.2104, allocations: 351.5 kB / 0.5024 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.181/0.3914, allocations: 3.489 MB / 0.5059 GB, free: 68.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.3926, allocations: 71.78 kB / 0.5059 GB, free: 68.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.3929, allocations: 82.52 kB / 0.506 GB, free: 68.7 MB / 378.7 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006283/0.3935, allocations: 291.2 kB / 0.5063 GB, free: 68.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.3939, allocations: 116.2 kB / 0.5064 GB, free: 68.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004119/0.398, allocations: 1.248 MB / 0.5076 GB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.398, allocations: 12.66 kB / 0.5076 GB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.398, allocations: 0 / 0.5076 GB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.3981, allocations: 3.375 kB / 0.5076 GB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.3995, allocations: 1.103 MB / 0.5087 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3995, allocations: 0 / 0.5087 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006217/0.4001, allocations: 180.4 kB / 0.5089 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001834/0.4019, allocations: 227.8 kB / 0.5091 GB, free: 68.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.397e-05/0.402, allocations: 37.55 kB / 0.5091 GB, free: 68.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003987/0.406, allocations: 3.399 MB / 0.5124 GB, free: 65.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4061, allocations: 1.188 kB / 0.5124 GB, free: 65.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01923/0.4253, allocations: 7.896 MB / 0.5202 GB, free: 62.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.4255, allocations: 169.9 kB / 0.5203 GB, free: 62.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.4257, allocations: 23.22 kB / 0.5203 GB, free: 62.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006141/0.4264, allocations: 38.95 kB / 0.5204 GB, free: 62.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.4266, allocations: 71.5 kB / 0.5204 GB, free: 62.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-05/0.4267, allocations: 39.14 kB / 0.5205 GB, free: 62.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001043/0.4277, allocations: 0.9134 MB / 0.5214 GB, free: 62.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4277, allocations: 0 / 0.5214 GB, free: 62.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00272/0.4305, allocations: 0.9672 MB / 0.5223 GB, free: 62.19 MB / 378.7 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001991/0.4325, allocations: 0.9922 MB / 0.5233 GB, free: 62.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002264/0.4348, allocations: 1.407 MB / 0.5247 GB, free: 61.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.4348, allocations: 0 / 0.5247 GB, free: 61.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009891/0.4358, allocations: 0.6854 MB / 0.5253 GB, free: 61.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.437, allocations: 209 kB / 0.5255 GB, free: 60.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004257/0.4413, allocations: 3.29 MB / 0.5287 GB, free: 58.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.442, allocations: 1.108 MB / 0.5298 GB, free: 58.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001254/0.4433, allocations: 267.9 kB / 0.5301 GB, free: 58.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005005/0.4438, allocations: 182.4 kB / 0.5303 GB, free: 57.99 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4438, allocations: 1.219 kB / 0.5303 GB, free: 57.99 MB / 378.7 MB Notification: Performance of Templates: time 0.03452/0.4783, allocations: 29.42 MB / 0.559 GB, free: 34.59 MB / 378.7 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)