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.001148/0.001148, allocations: 104.1 kB / 16.41 MB, free: 6.512 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.001143/0.001143, allocations: 187 kB / 17.34 MB, free: 5.742 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08934/0.08934, allocations: 15.3 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 59.91 kB / 425.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09237, allocations: 53.62 MB / 479.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.008035/0.1004, allocations: 6.953 MB / 486.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02284/0.1233, allocations: 21.77 MB / 0.4963 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000864/0.1242, allocations: 15.94 kB / 0.4963 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001325/0.1255, allocations: 456.7 kB / 0.4967 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004179/0.1298, allocations: 1.645 MB / 0.4983 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006599/0.1364, allocations: 2.803 MB / 0.5011 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002494/0.1389, allocations: 1.818 MB / 0.5028 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001231/0.1401, allocations: 0.9254 MB / 0.5037 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.1413, allocations: 0.8533 MB / 0.5046 GB, free: 412 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2116/0.3529, allocations: 0.9377 MB / 0.5055 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006384/0.3536, allocations: 155.3 kB / 0.5056 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.3649, allocations: 2.314 MB / 0.5079 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.366, allocations: 362.8 kB / 0.5082 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001492/0.3676, allocations: 0.7909 MB / 0.509 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.3815, allocations: 4.135 MB / 0.5131 GB, free: 7.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.3815, allocations: 1.375 kB / 0.5131 GB, free: 7.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3816, allocations: 3.25 kB / 0.5131 GB, free: 7.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.607e-05/0.3816, allocations: 0 / 0.5131 GB, free: 7.281 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.00757/0.3892, allocations: 2.069 MB / 0.5151 GB, free: 6.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.3893, allocations: 10.56 kB / 0.5151 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003478/0.3928, allocations: 383.1 kB / 0.5155 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002413/0.3952, allocations: 0.7583 MB / 0.5162 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.3953, allocations: 94.84 kB / 0.5163 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003713/0.3957, allocations: 129.5 kB / 0.5164 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004958/0.4007, allocations: 1.756 MB / 0.5181 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.406e-05/0.4008, allocations: 6.938 kB / 0.5181 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002217/0.401, allocations: 50.94 kB / 0.5182 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.835e-05/0.4011, allocations: 29.06 kB / 0.5182 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00653/0.4076, allocations: 2.486 MB / 0.5206 GB, free: 5.695 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.01393/0.4216, allocations: 5.083 MB / 0.5256 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005651/0.4273, allocations: 2.24 MB / 0.5278 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.4287, allocations: 0.5526 MB / 0.5283 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01217/0.4409, allocations: 5.313 MB / 0.5335 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.893e-05/0.441, allocations: 44.91 kB / 0.5336 GB, free: 13.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.246e-06/0.441, allocations: 0 / 0.5336 GB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.01656/0.4576, allocations: 3.369 MB / 0.5368 GB, free: 12.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.4577, allocations: 62.06 kB / 0.5369 GB, free: 12.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/0.4594, allocations: 1.298 MB / 0.5382 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.4595, allocations: 45.42 kB / 0.5382 GB, free: 11.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004471/0.46, allocations: 0.6766 MB / 0.5389 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.4603, allocations: 313.9 kB / 0.5392 GB, free: 10.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004189/0.4607, allocations: 294.2 kB / 0.5395 GB, free: 10.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.4609, allocations: 363.6 kB / 0.5398 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007763/0.4617, allocations: 0.5076 MB / 0.5403 GB, free: 9.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.4629, allocations: 1.001 MB / 0.5413 GB, free: 9.066 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/0.4647, allocations: 1.439 MB / 0.5427 GB, free: 7.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.4647, allocations: 3.062 kB / 0.5427 GB, free: 7.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004968/0.4697, allocations: 1.903 MB / 0.5445 GB, free: 6.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.4697, allocations: 12 kB / 0.5446 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.4698, allocations: 16 kB / 0.5446 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002157/0.4719, allocations: 245.5 kB / 0.5448 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.4732, allocations: 358.9 kB / 0.5451 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005936/0.4791, allocations: 3.854 MB / 0.5489 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.4805, allocations: 48 kB / 0.549 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/0.4807, allocations: 83.36 kB / 0.549 GB, free: 1.418 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.0006502/0.4814, allocations: 299.6 kB / 0.5493 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.4817, allocations: 107.3 kB / 0.5494 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004251/0.486, allocations: 1.252 MB / 0.5506 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.486, allocations: 8 kB / 0.5507 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.486, allocations: 4 kB / 0.5507 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.486, allocations: 3.984 kB / 0.5507 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/0.488, allocations: 1.112 MB / 0.5517 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.488, allocations: 0 / 0.5517 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007135/0.4887, allocations: 174.2 kB / 0.5519 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002084/0.4908, allocations: 233.6 kB / 0.5521 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.673e-05/0.4909, allocations: 35.92 kB / 0.5522 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/0.4962, allocations: 3.764 MB / 0.5558 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4962, allocations: 4.031 kB / 0.5559 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004484/0.5007, allocations: 1.598 MB / 0.5574 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004149/0.5011, allocations: 175.8 kB / 0.5576 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.5014, allocations: 16 kB / 0.5576 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000671/0.5021, allocations: 20 kB / 0.5576 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.5022, allocations: 80.81 kB / 0.5577 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.104e-05/0.5023, allocations: 39.98 kB / 0.5577 GB, free: 8.191 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001134/0.5035, allocations: 0.9062 MB / 0.5586 GB, free: 7.273 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.142e-06/0.5035, allocations: 7.938 kB / 0.5586 GB, free: 7.266 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002942/0.5064, allocations: 0.8388 MB / 0.5594 GB, free: 6.43 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.00242/0.5089, allocations: 1.013 MB / 0.5604 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002509/0.5114, allocations: 1.413 MB / 0.5618 GB, free: 4.156 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.5114, allocations: 8.188 kB / 0.5618 GB, free: 4.148 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.5124, allocations: 0.6792 MB / 0.5625 GB, free: 3.465 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.5137, allocations: 232.9 kB / 0.5627 GB, free: 3.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/0.5175, allocations: 2.141 MB / 0.5648 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007738/0.5182, allocations: 1.081 MB / 0.5659 GB, free: 15.97 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005145/0.5188, allocations: 223.6 kB / 0.5661 GB, free: 15.75 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5188, allocations: 0 / 0.5661 GB, free: 15.75 MB / 430.1 MB Notification: Performance of Templates: time 0.04126/0.56, allocations: 31.32 MB / 0.5966 GB, free: 0.5586 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)