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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09953/0.09953, allocations: 15.26 MB / 31.2 MB, free: 3.227 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009203/0.0009202, allocations: 171.9 kB / 36.3 MB, free: 2.262 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.485/1.485, allocations: 223.3 MB / 264.5 MB, free: 6.234 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.0009344/0.0009343, allocations: 99.73 kB / 319.9 MB, free: 3.156 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003766, allocations: 11.48 kB / 385.2 MB, free: 50.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1053, allocations: 54.65 MB / 439.8 MB, free: 68 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3948/0.5002, allocations: 95.36 MB / 0.5227 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.5005, allocations: 67.31 kB / 0.5227 GB, free: 15.52 MB / 378.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 - DAE generated: time 0.03069/0.5312, allocations: 12.4 MB / 0.5348 GB, free: 30.47 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5312, allocations: 3.938 kB / 0.5348 GB, free: 30.47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.239e-05/0.5313, allocations: 10.52 kB / 0.5348 GB, free: 30.47 MB / 394.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.001606/0.5329, allocations: 0.7373 MB / 0.5356 GB, free: 29.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.5329, allocations: 12.86 kB / 0.5356 GB, free: 29.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007243/0.5337, allocations: 142.2 kB / 0.5357 GB, free: 29.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008066/0.5345, allocations: 449 kB / 0.5361 GB, free: 29.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.5345, allocations: 23.09 kB / 0.5362 GB, free: 29.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.874e-05/0.5346, allocations: 26.5 kB / 0.5362 GB, free: 29.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000924/0.5355, allocations: 0.729 MB / 0.5369 GB, free: 29.47 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.5356, allocations: 7.688 kB / 0.5369 GB, free: 29.47 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.5356, allocations: 10.88 kB / 0.5369 GB, free: 29.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.5356, allocations: 3.75 kB / 0.5369 GB, free: 29.47 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.5369, allocations: 1.116 MB / 0.538 GB, free: 29.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003583/0.5404, allocations: 2.397 MB / 0.5403 GB, free: 28.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.45e-05/0.5405, allocations: 29.86 kB / 0.5404 GB, free: 28.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.194e-05/0.5406, allocations: 16.38 kB / 0.5404 GB, free: 28.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.344e-06/0.5406, allocations: 0 / 0.5404 GB, free: 28.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.5406, allocations: 32.25 kB / 0.5404 GB, free: 28.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.313e-06/0.5406, allocations: 4 kB / 0.5404 GB, free: 28.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002671/0.5409, allocations: 107.2 kB / 0.5405 GB, free: 28.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.5409, allocations: 55.34 kB / 0.5406 GB, free: 28.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/0.5422, allocations: 1.204 MB / 0.5418 GB, free: 28.03 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.5422, allocations: 25.7 kB / 0.5418 GB, free: 28 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.5424, allocations: 321.8 kB / 0.5421 GB, free: 27.83 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.066e-05/0.5424, allocations: 14.78 kB / 0.5421 GB, free: 27.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.788e-05/0.5425, allocations: 3.75 kB / 0.5421 GB, free: 27.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.5426, allocations: 367.4 kB / 0.5425 GB, free: 27.51 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003074/0.5429, allocations: 301.6 kB / 0.5427 GB, free: 27.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003153/0.5433, allocations: 433.4 kB / 0.5432 GB, free: 27.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004205/0.5437, allocations: 497.4 kB / 0.5436 GB, free: 27.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.5437, allocations: 3.875 kB / 0.5436 GB, free: 27.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008546/0.5446, allocations: 0.7915 MB / 0.5444 GB, free: 27.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.5446, allocations: 10.75 kB / 0.5444 GB, free: 27.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.5446, allocations: 8 kB / 0.5444 GB, free: 27.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.5446, allocations: 7.75 kB / 0.5444 GB, free: 27.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.5449, allocations: 83.84 kB / 0.5445 GB, free: 27.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.545, allocations: 7.719 kB / 0.5445 GB, free: 27.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.5454, allocations: 50.09 kB / 0.5446 GB, free: 27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.5454, allocations: 25.69 kB / 0.5446 GB, free: 27 MB / 394.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 () * Number of clocked 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 0.0001927/0.5456, allocations: 174.1 kB / 0.5448 GB, free: 26.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.761e-05/0.5457, allocations: 50.62 kB / 0.5448 GB, free: 26.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.371e-05/0.5458, allocations: 45.69 kB / 0.5448 GB, free: 26.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.5458, allocations: 3.984 kB / 0.5449 GB, free: 26.83 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.5458, allocations: 0 / 0.5449 GB, free: 26.83 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.5458, allocations: 0 / 0.5449 GB, free: 26.83 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006329/0.5464, allocations: 0.5841 MB / 0.5454 GB, free: 26.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5464, allocations: 3.844 kB / 0.5454 GB, free: 26.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.195e-05/0.5465, allocations: 0 / 0.5454 GB, free: 26.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5465, allocations: 0 / 0.5454 GB, free: 26.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.5465, allocations: 6.844 kB / 0.5454 GB, free: 26.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.5465, allocations: 0 / 0.5454 GB, free: 26.45 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5465, allocations: 7.812 kB / 0.5454 GB, free: 26.44 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.5466, allocations: 112.9 kB / 0.5455 GB, free: 26.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.5468, allocations: 148.2 kB / 0.5457 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.667e-05/0.5469, allocations: 3 kB / 0.5457 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.547, allocations: 0 / 0.5457 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.547, allocations: 7.812 kB / 0.5457 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.547, allocations: 4.031 kB / 0.5457 GB, free: 26.22 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007402/0.5478, allocations: 0.908 MB / 0.5466 GB, free: 26.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5478, allocations: 0 / 0.5466 GB, free: 26.14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005365/0.5483, allocations: 166.7 kB / 0.5467 GB, free: 26.11 MB / 394.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 () * Number of clocked 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.0004383/0.5488, allocations: 238.4 kB / 0.547 GB, free: 25.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000423/0.5492, allocations: 384.5 kB / 0.5473 GB, free: 25.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5492, allocations: 0 / 0.5473 GB, free: 25.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.437e-05/0.5493, allocations: 7.594 kB / 0.5474 GB, free: 25.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.55, allocations: 149.8 kB / 0.5475 GB, free: 25.95 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009687/0.551, allocations: 0.7449 MB / 0.5482 GB, free: 25.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.5514, allocations: 0.812 MB / 0.549 GB, free: 24.83 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003215/0.5517, allocations: 95.58 kB / 0.5491 GB, free: 24.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.708e-05/0.5518, allocations: 34.27 kB / 0.5491 GB, free: 24.79 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5518, allocations: 0 / 0.5491 GB, free: 24.79 MB / 394.7 MB Notification: Performance of Templates: time 0.01237/0.5642, allocations: 7.627 MB / 0.5566 GB, free: 22.72 MB / 394.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)