Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") translateModel(Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.06349/0.06349, allocations: 15.27 MB / 22.54 MB, free: 1.109 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009183/0.0009183, allocations: 187.5 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.086/1.086, allocations: 221.4 MB / 253.3 MB, free: 10.69 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.0008376/0.0008379, allocations: 92.61 kB / 308.4 MB, free: 10.74 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 6.332e-06/6.582e-06, allocations: 224 / 369 MB, free: 5.781 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08445/0.08447, allocations: 54.64 MB / 423.7 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1051/0.1896, allocations: 99.07 MB / 0.5105 GB, free: 11.83 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001535/0.1898, allocations: 67.97 kB / 0.5106 GB, free: 11.77 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System A.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$A. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System B.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$B. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System C.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$C. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd: time 0.2074/0.3972, allocations: 33.75 MB / 0.5435 GB, free: 118.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.774e-05/0.3973, allocations: 19.12 kB / 0.5435 GB, free: 118.2 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002309/0.3996, allocations: 1.286 MB / 0.5448 GB, free: 117.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.3997, allocations: 9.125 kB / 0.5448 GB, free: 117.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000957/0.4006, allocations: 267.1 kB / 0.5451 GB, free: 117.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.4019, allocations: 0.7556 MB / 0.5458 GB, free: 117.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.57e-05/0.4019, allocations: 63.7 kB / 0.5459 GB, free: 117.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.4021, allocations: 51.59 kB / 0.5459 GB, free: 117.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002188/0.4043, allocations: 2.098 MB / 0.5479 GB, free: 117.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.4057, allocations: 1.208 MB / 0.5491 GB, free: 116.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.4058, allocations: 3.312 kB / 0.5491 GB, free: 116.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.017e-05/0.4058, allocations: 0 / 0.5491 GB, free: 116.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.4058, allocations: 21.09 kB / 0.5492 GB, free: 116.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/0.4111, allocations: 4.748 MB / 0.5538 GB, free: 114 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.4125, allocations: 1.56 MB / 0.5553 GB, free: 113.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006314/0.4132, allocations: 0.7494 MB / 0.556 GB, free: 113.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002698/0.4134, allocations: 255.5 kB / 0.5563 GB, free: 113 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.492e-05/0.4135, allocations: 42.72 kB / 0.5563 GB, free: 112.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=98): time 2.715e-06/0.4135, allocations: 0 / 0.5563 GB, free: 112.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=118): time 0.008606/0.4221, allocations: 4.767 MB / 0.561 GB, free: 111.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.98e-05/0.4221, allocations: 69.28 kB / 0.561 GB, free: 111 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004643/0.4226, allocations: 0.4905 MB / 0.5615 GB, free: 110.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.063e-05/0.4226, allocations: 28.89 kB / 0.5616 GB, free: 110.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.229e-05/0.4227, allocations: 311.5 kB / 0.5619 GB, free: 110.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.4229, allocations: 378.3 kB / 0.5622 GB, free: 110.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.423, allocations: 0 / 0.5622 GB, free: 110.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.162e-05/0.4231, allocations: 395.3 kB / 0.5626 GB, free: 109.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006262/0.4237, allocations: 0.6561 MB / 0.5632 GB, free: 109.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006674/0.4244, allocations: 0.7875 MB / 0.564 GB, free: 109.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001744/0.4261, allocations: 0.9209 MB / 0.5649 GB, free: 108.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4261, allocations: 0 / 0.5649 GB, free: 108.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002784/0.4289, allocations: 1.916 MB / 0.5668 GB, free: 108.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.4289, allocations: 6.406 kB / 0.5668 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4289, allocations: 3.406 kB / 0.5668 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002685/0.4292, allocations: 113.6 kB / 0.5669 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.4305, allocations: 278.5 kB / 0.5672 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004539/0.431, allocations: 0.8032 MB / 0.5679 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/0.4316, allocations: 23.44 kB / 0.568 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.647e-05/0.4316, allocations: 43.36 kB / 0.568 GB, free: 107.4 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: A.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001796/0.4318, allocations: 125.6 kB / 0.5681 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.432, allocations: 83.91 kB / 0.5682 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/0.4352, allocations: 2.066 MB / 0.5702 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.4352, allocations: 13.94 kB / 0.5702 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4352, allocations: 3.469 kB / 0.5702 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4352, allocations: 3.469 kB / 0.5702 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004844/0.4401, allocations: 3.958 MB / 0.5741 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.4401, allocations: 8.688 kB / 0.5741 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.4414, allocations: 272.5 kB / 0.5744 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002343/0.4416, allocations: 114 kB / 0.5745 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.998e-05/0.4417, allocations: 23 kB / 0.5745 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004258/0.4421, allocations: 0.7913 MB / 0.5753 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4421, allocations: 4.812 kB / 0.5753 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003796/0.4459, allocations: 3.301 MB / 0.5785 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000302/0.4462, allocations: 248.3 kB / 0.5787 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.4464, allocations: 8 kB / 0.5787 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.4469, allocations: 26.84 kB / 0.5788 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.447, allocations: 76.52 kB / 0.5788 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-05/0.4471, allocations: 47.47 kB / 0.5789 GB, free: 101.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003091/0.4474, allocations: 393.9 kB / 0.5793 GB, free: 101.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001058/0.4485, allocations: 0.5215 MB / 0.5798 GB, free: 100.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 126 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009717/0.4494, allocations: 0.6674 MB / 0.5804 GB, free: 100 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.4509, allocations: 1.557 MB / 0.5819 GB, free: 98.58 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4509, allocations: 4.062 kB / 0.582 GB, free: 98.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007355/0.4517, allocations: 0.837 MB / 0.5828 GB, free: 97.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.4527, allocations: 248.9 kB / 0.583 GB, free: 97.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.4552, allocations: 1.755 MB / 0.5847 GB, free: 95.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006517/0.4559, allocations: 1.178 MB / 0.5859 GB, free: 94.9 MB / 442.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4559, allocations: 0 / 0.5859 GB, free: 94.9 MB / 442.7 MB Notification: Performance of Templates: time 0.0244/0.4803, allocations: 21.1 MB / 0.6065 GB, free: 75.23 MB / 442.7 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & ./Chemical_Chemical.Examples.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)