Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility") translateModel(Chemical.Examples.GasSolubility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 95.92 kB / 15.36 MB, free: 0.7344 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.008979/0.008979, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.418/1.418, allocations: 223.3 MB / 240.3 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1992/0.1992, allocations: 15.28 MB / 306.7 MB, free: 15.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003225, allocations: 8 kB / 372.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.295, allocations: 54.62 MB / 426.7 MB, free: 40.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.008264/0.3033, allocations: 11.34 MB / 438 MB, free: 34.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02798/0.3313, allocations: 32.48 MB / 470.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.3334, allocations: 47.38 kB / 470.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001914/0.3353, allocations: 0.621 MB / 471.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007234/0.3426, allocations: 2.311 MB / 473.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01053/0.3531, allocations: 3.749 MB / 477.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00457/0.3577, allocations: 2.87 MB / 480.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002129/0.3599, allocations: 1.363 MB / 481.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002122/0.362, allocations: 1.351 MB / 482.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002651/0.3647, allocations: 1.501 MB / 484.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005163/0.3652, allocations: 138.5 kB / 484.5 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01217/0.3774, allocations: 3.511 MB / 488 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001488/0.3789, allocations: 491.1 kB / 488.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003061/0.382, allocations: 1.22 MB / 489.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01795/0.3999, allocations: 6.12 MB / 495.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4, allocations: 0 / 495.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4, allocations: 0 / 495.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.44e-05/0.4001, allocations: 1.156 kB / 495.8 MB, free: 15.93 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.007871/0.4079, allocations: 2.695 MB / 498.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.408, allocations: 12.03 kB / 498.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002687/0.4107, allocations: 0.5693 MB / 499.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/0.4128, allocations: 1.064 MB / 0.4884 GB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.413, allocations: 160.6 kB / 0.4886 GB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004107/0.4134, allocations: 224.2 kB / 0.4888 GB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004729/0.4181, allocations: 2.791 MB / 0.4915 GB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.978e-05/0.4182, allocations: 0 / 0.4915 GB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002467/0.4184, allocations: 87.98 kB / 0.4916 GB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.196e-05/0.4185, allocations: 52 kB / 0.4916 GB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005918/0.4244, allocations: 3.788 MB / 0.4953 GB, free: 5.043 MB / 366.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.01443/0.4389, allocations: 8.252 MB / 0.5034 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005763/0.4446, allocations: 3.953 MB / 0.5073 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.4463, allocations: 1.021 MB / 0.5083 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01247/0.4588, allocations: 9.033 MB / 0.5171 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.56e-05/0.4589, allocations: 51.81 kB / 0.5171 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007656/0.4596, allocations: 158.2 kB / 0.5173 GB, free: 13.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=138): time 3.406e-06/0.4596, allocations: 0 / 0.5173 GB, free: 13.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=170): time 0.03211/0.4918, allocations: 6.481 MB / 0.5236 GB, free: 6.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.4919, allocations: 69.41 kB / 0.5237 GB, free: 6.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002346/0.4942, allocations: 1.667 MB / 0.5253 GB, free: 4.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003266/0.4946, allocations: 53.7 kB / 0.5254 GB, free: 4.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007473/0.4953, allocations: 1.046 MB / 0.5264 GB, free: 3.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006224/0.496, allocations: 0.5893 MB / 0.527 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002613/0.4962, allocations: 194.7 kB / 0.5271 GB, free: 2.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4964, allocations: 301.1 kB / 0.5274 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.4978, allocations: 0.7974 MB / 0.5282 GB, free: 1.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001899/0.4997, allocations: 1.589 MB / 0.5298 GB, free: 15.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.503, allocations: 2.42 MB / 0.5321 GB, free: 12.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/0.503, allocations: 8 kB / 0.5321 GB, free: 12.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008955/0.512, allocations: 3.158 MB / 0.5352 GB, free: 9.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.542e-05/0.5121, allocations: 16 kB / 0.5352 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.312e-05/0.5121, allocations: 24 kB / 0.5352 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004216/0.5163, allocations: 0.503 MB / 0.5357 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002273/0.5186, allocations: 0.585 MB / 0.5363 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.5295, allocations: 7.023 MB / 0.5432 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/0.5319, allocations: 135.8 kB / 0.5433 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002799/0.5322, allocations: 139.9 kB / 0.5434 GB, free: 0.8086 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * 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 (305): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008911/0.5331, allocations: 428.9 kB / 0.5438 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/0.5334, allocations: 173.8 kB / 0.544 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008076/0.5415, allocations: 2.413 MB / 0.5464 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.386e-05/0.5415, allocations: 19.94 kB / 0.5464 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.5415, allocations: 4 kB / 0.5464 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.054e-05/0.5416, allocations: 11.91 kB / 0.5464 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.5447, allocations: 1.853 MB / 0.5482 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.5448, allocations: 7.938 kB / 0.5482 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.5461, allocations: 347.8 kB / 0.5485 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004187/0.5503, allocations: 486.9 kB / 0.549 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003167/0.5507, allocations: 63.97 kB / 0.5491 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009694/0.5604, allocations: 6.823 MB / 0.5557 GB, free: 3.539 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.017e-06/0.5604, allocations: 15.91 kB / 0.5558 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008555/0.569, allocations: 3.022 MB / 0.5587 GB, free: 456 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007372/0.5698, allocations: 254.9 kB / 0.5589 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.57, allocations: 36 kB / 0.559 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009696/0.571, allocations: 59.92 kB / 0.559 GB, free: 84 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003432/0.5714, allocations: 149.7 kB / 0.5592 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.5715, allocations: 71.97 kB / 0.5592 GB, free: 15.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001449/0.573, allocations: 1.133 MB / 0.5604 GB, free: 14.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.573, allocations: 4 kB / 0.5604 GB, free: 14.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005489/0.5785, allocations: 1.351 MB / 0.5617 GB, free: 13.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (blood_plasma.temperature,red_cells.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,CO2_unbound_erythrocyte.logn,O2_unbound_erythrocyte_NIST.logn,water_plasma.logn,water.logn,water_plasma1.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 (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003876/0.5824, allocations: 1.508 MB / 0.5632 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004462/0.5868, allocations: 2.494 MB / 0.5656 GB, free: 9.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5869, allocations: 0 / 0.5656 GB, free: 9.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.5888, allocations: 1.362 MB / 0.5669 GB, free: 7.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002277/0.5911, allocations: 330.2 kB / 0.5672 GB, free: 7.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006425/0.5975, allocations: 4.589 MB / 0.5717 GB, free: 2.953 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.5986, allocations: 1.378 MB / 0.5731 GB, free: 1.543 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001976/0.6006, allocations: 445.9 kB / 0.5735 GB, free: 1.102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006371/0.6013, allocations: 298.5 kB / 0.5738 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6013, allocations: 4 kB / 0.5738 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of Templates: time 0.2563/0.8576, allocations: 44.1 MB / 0.6168 GB, free: 130 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.GasSolubility.makefile (rm -f Chemical_Chemical.Examples.GasSolubility.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility.sim & ./Chemical_Chemical.Examples.GasSolubility -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)