Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction.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.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") [: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.06773/0.06773, allocations: 15.26 MB / 22.54 MB, free: 1.121 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.0009074/0.0009075, allocations: 187.5 kB / 27.31 MB, free: 8 kB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.083/1.083, allocations: 221.4 MB / 253.3 MB, free: 10.39 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.0008854/0.0008854, allocations: 88.5 kB / 308.4 MB, free: 10.73 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.521e-06/5.541e-06, allocations: 1.031 kB / 369 MB, free: 53.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06668/0.06669, allocations: 54.64 MB / 423.7 MB, free: 14.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/0.2911, allocations: 99.05 MB / 0.5105 GB, free: 8.312 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001449/0.2912, allocations: 64.86 kB / 0.5105 GB, free: 8.312 MB / 362.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. Notification: Performance of FrontEnd: time 0.05122/0.3425, allocations: 24.23 MB / 0.5342 GB, free: 3.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.87e-05/0.3425, allocations: 17.36 kB / 0.5342 GB, free: 3.875 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001357/0.3439, allocations: 1.023 MB / 0.5352 GB, free: 3.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.3439, allocations: 11.5 kB / 0.5352 GB, free: 3.133 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005967/0.3445, allocations: 188.4 kB / 0.5354 GB, free: 3.051 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008333/0.3454, allocations: 0.5892 MB / 0.536 GB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/0.3454, allocations: 58.17 kB / 0.536 GB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.842e-05/0.3455, allocations: 38.25 kB / 0.5361 GB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001424/0.3469, allocations: 1.497 MB / 0.5375 GB, free: 2.473 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.348, allocations: 0.9717 MB / 0.5385 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.348, allocations: 0 / 0.5385 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.3481, allocations: 0 / 0.5385 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.3481, allocations: 19.16 kB / 0.5385 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004304/0.3524, allocations: 3.698 MB / 0.5421 GB, free: 16.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.353, allocations: 0.6712 MB / 0.5428 GB, free: 16.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004665/0.3535, allocations: 0.5686 MB / 0.5433 GB, free: 16.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001824/0.3537, allocations: 169.4 kB / 0.5435 GB, free: 16.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.3537, allocations: 38.16 kB / 0.5435 GB, free: 16.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 1.834e-06/0.3537, allocations: 0 / 0.5435 GB, free: 16.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.006008/0.3597, allocations: 3.407 MB / 0.5468 GB, free: 15.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.3598, allocations: 63.67 kB / 0.5469 GB, free: 15.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000353/0.3601, allocations: 391.6 kB / 0.5473 GB, free: 15.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.997e-05/0.3602, allocations: 25.7 kB / 0.5473 GB, free: 15.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3603, allocations: 265.1 kB / 0.5475 GB, free: 14.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.3605, allocations: 261.5 kB / 0.5478 GB, free: 14.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.3605, allocations: 0 / 0.5478 GB, free: 14.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3606, allocations: 368.3 kB / 0.5481 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005178/0.3612, allocations: 0.4998 MB / 0.5486 GB, free: 14.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005957/0.3618, allocations: 0.5945 MB / 0.5492 GB, free: 14.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.3632, allocations: 0.6606 MB / 0.5499 GB, free: 13.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3632, allocations: 1.562 kB / 0.5499 GB, free: 13.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00233/0.3656, allocations: 1.41 MB / 0.5512 GB, free: 13.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.3656, allocations: 4.219 kB / 0.5512 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3656, allocations: 2.531 kB / 0.5512 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000222/0.3658, allocations: 84.19 kB / 0.5513 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.3669, allocations: 199.4 kB / 0.5515 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005595/0.3674, allocations: 0.7113 MB / 0.5522 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003822/0.3678, allocations: 19.06 kB / 0.5522 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.02e-05/0.3679, allocations: 37.69 kB / 0.5523 GB, free: 12.79 MB / 378.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: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 88 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001648/0.3681, allocations: 113.5 kB / 0.5524 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.3682, allocations: 59.78 kB / 0.5524 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.371, allocations: 1.499 MB / 0.5539 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.371, allocations: 9.094 kB / 0.5539 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.371, allocations: 0 / 0.5539 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.3711, allocations: 5.547 kB / 0.5539 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.375, allocations: 2.668 MB / 0.5565 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.375, allocations: 6.125 kB / 0.5565 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009567/0.376, allocations: 205.4 kB / 0.5567 GB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.3762, allocations: 79.62 kB / 0.5568 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-05/0.3762, allocations: 15.55 kB / 0.5568 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004622/0.3767, allocations: 0.6958 MB / 0.5575 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3767, allocations: 6.719 kB / 0.5575 GB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003134/0.3799, allocations: 2.328 MB / 0.5598 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.3801, allocations: 199.1 kB / 0.56 GB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.885e-05/0.3802, allocations: 6.594 kB / 0.56 GB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003499/0.3806, allocations: 14.3 kB / 0.56 GB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.708e-05/0.3807, allocations: 60.66 kB / 0.56 GB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.092e-05/0.3808, allocations: 34.27 kB / 0.5601 GB, free: 7.742 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003007/0.3811, allocations: 301.4 kB / 0.5604 GB, free: 7.562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000879/0.3819, allocations: 367.1 kB / 0.5607 GB, free: 7.477 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 3 (solution.temperature,A.logn,B.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008055/0.3828, allocations: 0.4944 MB / 0.5612 GB, free: 7.215 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.3843, allocations: 1.146 MB / 0.5623 GB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3843, allocations: 0.9688 kB / 0.5623 GB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007129/0.385, allocations: 0.6161 MB / 0.5629 GB, free: 6.215 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/0.3858, allocations: 190.1 kB / 0.5631 GB, free: 6.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002035/0.3879, allocations: 1.264 MB / 0.5643 GB, free: 4.719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006763/0.3886, allocations: 1.046 MB / 0.5653 GB, free: 3.645 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3886, allocations: 4 kB / 0.5653 GB, free: 3.641 MB / 378.7 MB Notification: Performance of Templates: time 0.02176/0.4103, allocations: 15.14 MB / 0.5801 GB, free: 4.668 MB / 394.7 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & ./Chemical_Chemical.Examples.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)