Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.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.CheckSubstancesData.SimpleReaction2_Get_DfG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG") [: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.06193/0.06193, allocations: 15.27 MB / 22.54 MB, free: 1.098 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.0009139/0.000914, allocations: 191.6 kB / 27.31 MB, free: 6.172 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.09/1.09, allocations: 221.4 MB / 253.3 MB, free: 10.63 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.0008789/0.0008789, allocations: 84.73 kB / 308.4 MB, free: 10.7 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 6.312e-06/6.332e-06, allocations: 1.25 kB / 369 MB, free: 53.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07083/0.07084, allocations: 54.63 MB / 423.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2218/0.2927, allocations: 94.53 MB / 0.506 GB, free: 8.359 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001473/0.2929, allocations: 66.92 kB / 0.5061 GB, free: 8.359 MB / 362.7 MB [/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.Sources.PureSubstance. 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:1535:7-1535:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System reaction.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.Sensors.DissociationCoefficient$reaction. 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.Sources.PureSubstance. 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.02458/0.3174, allocations: 11.96 MB / 0.5178 GB, free: 7.578 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.3175, allocations: 11.59 kB / 0.5178 GB, free: 7.578 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.0006552/0.3181, allocations: 0.6645 MB / 0.5184 GB, free: 7.074 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.3182, allocations: 11.66 kB / 0.5185 GB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004638/0.3187, allocations: 150.5 kB / 0.5186 GB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.3192, allocations: 430.2 kB / 0.519 GB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.3192, allocations: 11.66 kB / 0.519 GB, free: 6.785 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/0.3192, allocations: 15.38 kB / 0.519 GB, free: 6.785 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009592/0.3202, allocations: 1.092 MB / 0.5201 GB, free: 6.773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004906/0.3207, allocations: 0.5248 MB / 0.5206 GB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3207, allocations: 0 / 0.5206 GB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.3207, allocations: 11.86 kB / 0.5206 GB, free: 6.645 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3207, allocations: 3.875 kB / 0.5206 GB, free: 6.645 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.3231, allocations: 2.494 MB / 0.5231 GB, free: 21.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.401e-05/0.3232, allocations: 31.69 kB / 0.5231 GB, free: 21.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.202e-05/0.3232, allocations: 12.36 kB / 0.5231 GB, free: 21.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.27e-06/0.3232, allocations: 0 / 0.5231 GB, free: 21.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.62e-05/0.3233, allocations: 36.03 kB / 0.5231 GB, free: 21.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.3233, allocations: 3.875 kB / 0.5231 GB, free: 21.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000152/0.3234, allocations: 84.88 kB / 0.5232 GB, free: 21.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.035e-05/0.3234, allocations: 55.97 kB / 0.5233 GB, free: 21.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009134/0.3244, allocations: 1.085 MB / 0.5243 GB, free: 21.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.3244, allocations: 25.7 kB / 0.5244 GB, free: 21.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.819e-05/0.3245, allocations: 268.7 kB / 0.5246 GB, free: 20.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.163e-06/0.3245, allocations: 8.062 kB / 0.5246 GB, free: 20.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.607e-05/0.3245, allocations: 0 / 0.5246 GB, free: 20.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3246, allocations: 361.7 kB / 0.525 GB, free: 20.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.3249, allocations: 288.5 kB / 0.5253 GB, free: 20.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.3252, allocations: 434.7 kB / 0.5257 GB, free: 20.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009958/0.3262, allocations: 484.5 kB / 0.5261 GB, free: 20.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3262, allocations: 3.906 kB / 0.5261 GB, free: 20.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001394/0.3276, allocations: 0.911 MB / 0.527 GB, free: 20.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/0.3276, allocations: 3.875 kB / 0.527 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3276, allocations: 7.75 kB / 0.527 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3276, allocations: 7.75 kB / 0.527 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.3279, allocations: 86.38 kB / 0.5271 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3279, allocations: 9.656 kB / 0.5271 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.3283, allocations: 39.98 kB / 0.5272 GB, free: 20.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.3283, allocations: 18.05 kB / 0.5272 GB, free: 20.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.15e-05/0.3284, allocations: 121.3 kB / 0.5273 GB, free: 20.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.3285, allocations: 42.66 kB / 0.5273 GB, free: 20.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.239e-05/0.3285, allocations: 44.28 kB / 0.5274 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3285, allocations: 0 / 0.5274 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3285, allocations: 0.6562 kB / 0.5274 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3286, allocations: 0 / 0.5274 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005345/0.3291, allocations: 0.5508 MB / 0.5279 GB, free: 19.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3291, allocations: 7.844 kB / 0.5279 GB, free: 19.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.223e-05/0.3291, allocations: 8.266 kB / 0.5279 GB, free: 19.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3291, allocations: 0.6094 kB / 0.5279 GB, free: 19.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-06/0.3292, allocations: 0 / 0.5279 GB, free: 19.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3292, allocations: 0 / 0.5279 GB, free: 19.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3292, allocations: 0.5625 kB / 0.5279 GB, free: 19.71 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.512e-05/0.3293, allocations: 118.2 kB / 0.5281 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.3294, allocations: 138.7 kB / 0.5282 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.764e-05/0.3295, allocations: 4.656 kB / 0.5282 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.3296, allocations: 4.688 kB / 0.5282 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.327e-06/0.3296, allocations: 7.844 kB / 0.5282 GB, free: 19.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-06/0.3296, allocations: 0 / 0.5282 GB, free: 19.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000643/0.3303, allocations: 0.8529 MB / 0.529 GB, free: 19.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004002/0.3307, allocations: 164.1 kB / 0.5292 GB, free: 19.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002963/0.331, allocations: 241.2 kB / 0.5294 GB, free: 19.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.3313, allocations: 365.4 kB / 0.5298 GB, free: 19.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3313, allocations: 3.969 kB / 0.5298 GB, free: 19.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.076e-05/0.3313, allocations: 9.078 kB / 0.5298 GB, free: 19.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005404/0.3319, allocations: 147 kB / 0.5299 GB, free: 19.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00061/0.3325, allocations: 387.5 kB / 0.5303 GB, free: 18.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.3329, allocations: 0.8601 MB / 0.5311 GB, free: 18.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3329, allocations: 0 / 0.5311 GB, free: 18.16 MB / 378.7 MB Notification: Performance of Templates: time 0.009559/0.3424, allocations: 7.308 MB / 0.5383 GB, free: 14.6 MB / 378.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.pipe 2>&1)