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.001515/0.001515, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001693/0.001693, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08567/0.08567, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 60.12 kB / 425.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.102, allocations: 53.62 MB / 479.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.008687/0.1108, allocations: 6.956 MB / 486.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02476/0.1356, allocations: 21.76 MB / 0.4963 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.1369, allocations: 19.88 kB / 0.4963 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001657/0.1386, allocations: 460.7 kB / 0.4967 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005629/0.1443, allocations: 1.641 MB / 0.4983 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008524/0.1528, allocations: 2.799 MB / 0.5011 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003044/0.1559, allocations: 1.822 MB / 0.5028 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001564/0.1575, allocations: 0.9215 MB / 0.5037 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.1589, allocations: 0.8572 MB / 0.5046 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2356/0.3945, allocations: 0.941 MB / 0.5055 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005972/0.3952, allocations: 153.2 kB / 0.5056 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00811/0.4033, allocations: 2.315 MB / 0.5079 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007971/0.4041, allocations: 366.3 kB / 0.5082 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.4056, allocations: 0.7885 MB / 0.509 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01133/0.4169, allocations: 4.137 MB / 0.5131 GB, free: 7.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.417, allocations: 1 kB / 0.5131 GB, free: 7.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.417, allocations: 1.781 kB / 0.5131 GB, free: 7.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.999e-05/0.417, allocations: 0 / 0.5131 GB, free: 7.277 MB / 382.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.005124/0.4222, allocations: 2.075 MB / 0.5151 GB, free: 6.242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.4222, allocations: 7.719 kB / 0.5151 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00183/0.4241, allocations: 384.4 kB / 0.5155 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.4255, allocations: 0.7522 MB / 0.5162 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.4256, allocations: 94.44 kB / 0.5163 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/0.4259, allocations: 132.3 kB / 0.5164 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002991/0.4289, allocations: 1.756 MB / 0.5181 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.4289, allocations: 3.938 kB / 0.5181 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.429, allocations: 49.66 kB / 0.5182 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/0.4291, allocations: 29.88 kB / 0.5182 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003688/0.4328, allocations: 2.487 MB / 0.5206 GB, free: 5.688 MB / 382.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.008249/0.441, allocations: 5.087 MB / 0.5256 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003161/0.4442, allocations: 2.241 MB / 0.5278 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007818/0.445, allocations: 0.5505 MB / 0.5283 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007135/0.4522, allocations: 5.316 MB / 0.5335 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.4522, allocations: 38.59 kB / 0.5336 GB, free: 13.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.026e-06/0.4523, allocations: 0 / 0.5336 GB, free: 13.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.0142/0.4665, allocations: 3.363 MB / 0.5368 GB, free: 12.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.4666, allocations: 67.39 kB / 0.5369 GB, free: 12.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.4682, allocations: 1.293 MB / 0.5382 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.4683, allocations: 41.2 kB / 0.5382 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004417/0.4688, allocations: 0.6878 MB / 0.5389 GB, free: 10.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002886/0.4691, allocations: 316.3 kB / 0.5392 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003724/0.4694, allocations: 290 kB / 0.5395 GB, free: 10.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.4696, allocations: 363.5 kB / 0.5398 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007249/0.4703, allocations: 0.5122 MB / 0.5403 GB, free: 10.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.4715, allocations: 1 MB / 0.5413 GB, free: 9.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.4733, allocations: 1.432 MB / 0.5427 GB, free: 8.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.4733, allocations: 6.25 kB / 0.5427 GB, free: 8.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004598/0.4779, allocations: 1.903 MB / 0.5445 GB, free: 6.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.4779, allocations: 8.094 kB / 0.5446 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.478, allocations: 21.97 kB / 0.5446 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.4799, allocations: 245.5 kB / 0.5448 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.4811, allocations: 356.4 kB / 0.5451 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005768/0.4869, allocations: 3.869 MB / 0.5489 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.4884, allocations: 48 kB / 0.549 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001687/0.4885, allocations: 83.97 kB / 0.549 GB, free: 1.477 MB / 398.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 (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.000623/0.4892, allocations: 291.1 kB / 0.5493 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002959/0.4895, allocations: 102.7 kB / 0.5494 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003835/0.4933, allocations: 1.253 MB / 0.5506 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.4934, allocations: 8 kB / 0.5507 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4934, allocations: 0.875 kB / 0.5507 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.4934, allocations: 3.984 kB / 0.5507 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.4952, allocations: 1.108 MB / 0.5517 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.4952, allocations: 0 / 0.5517 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006771/0.4959, allocations: 183 kB / 0.5519 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/0.4977, allocations: 229.5 kB / 0.5521 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-05/0.4978, allocations: 35.05 kB / 0.5522 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005265/0.5031, allocations: 3.775 MB / 0.5559 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/0.5031, allocations: 3.938 kB / 0.5559 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004319/0.5075, allocations: 1.594 MB / 0.5574 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004549/0.508, allocations: 171.8 kB / 0.5576 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.5081, allocations: 20 kB / 0.5576 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005505/0.5087, allocations: 20.88 kB / 0.5576 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.5089, allocations: 80.83 kB / 0.5577 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.378e-05/0.509, allocations: 39.98 kB / 0.5577 GB, free: 8.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001107/0.5101, allocations: 0.9062 MB / 0.5586 GB, free: 7.332 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5101, allocations: 0 / 0.5586 GB, free: 7.332 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003294/0.5134, allocations: 0.8353 MB / 0.5594 GB, free: 6.496 MB / 414.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 (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.002451/0.5159, allocations: 1.017 MB / 0.5604 GB, free: 5.605 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.5186, allocations: 1.415 MB / 0.5618 GB, free: 4.219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5186, allocations: 0 / 0.5618 GB, free: 4.219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.5197, allocations: 0.6971 MB / 0.5625 GB, free: 3.523 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.5211, allocations: 233.9 kB / 0.5627 GB, free: 3.305 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003614/0.5247, allocations: 2.136 MB / 0.5648 GB, free: 1.145 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007665/0.5255, allocations: 1.077 MB / 0.5659 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005839/0.5261, allocations: 227.8 kB / 0.5661 GB, free: 15.81 MB / 430.1 MB Notification: Performance of SimCode: time 2.114e-06/0.5261, allocations: 0 / 0.5661 GB, free: 15.81 MB / 430.1 MB Notification: Performance of Templates: time 0.04094/0.5671, allocations: 31.11 MB / 0.5965 GB, free: 0.8125 MB / 446.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)