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.102/0.102, allocations: 15.25 MB / 27.81 MB, free: 5.41 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.0009482/0.0009482, allocations: 184.4 kB / 32.7 MB, free: 0.5273 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.41/1.41, allocations: 221.4 MB / 258.8 MB, free: 0 / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009015/0.0009016, allocations: 94.73 kB / 314 MB, free: 15.76 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.841e-05/2.843e-05, allocations: 0 / 376.5 MB, free: 1.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3205, allocations: 54.6 MB / 431.1 MB, free: 50.08 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.4444, allocations: 95.27 MB / 0.514 GB, free: 4.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.4447, allocations: 73.53 kB / 0.5141 GB, free: 3.949 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.03171/0.4764, allocations: 12.37 MB / 0.5262 GB, free: 7.727 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4765, allocations: 0 / 0.5262 GB, free: 7.727 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.762e-05/0.4765, allocations: 8 kB / 0.5262 GB, free: 7.719 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.0009645/0.4775, allocations: 0.6702 MB / 0.5268 GB, free: 7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.4775, allocations: 8.031 kB / 0.5268 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004961/0.478, allocations: 147.6 kB / 0.527 GB, free: 6.848 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006539/0.4787, allocations: 425.5 kB / 0.5274 GB, free: 6.391 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.4787, allocations: 26.02 kB / 0.5274 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.4788, allocations: 24 kB / 0.5274 GB, free: 6.344 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000934/0.4797, allocations: 0.7246 MB / 0.5281 GB, free: 5.582 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.4797, allocations: 3.984 kB / 0.5282 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.4798, allocations: 12 kB / 0.5282 GB, free: 5.566 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.4798, allocations: 10.34 kB / 0.5282 GB, free: 5.559 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.4811, allocations: 1.11 MB / 0.5293 GB, free: 4.449 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003226/0.4843, allocations: 2.393 MB / 0.5316 GB, free: 1.969 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.581e-05/0.4844, allocations: 30.53 kB / 0.5316 GB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.345e-05/0.4845, allocations: 16.84 kB / 0.5316 GB, free: 1.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.4845, allocations: 0 / 0.5316 GB, free: 1.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.4845, allocations: 42.5 kB / 0.5317 GB, free: 1.859 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4845, allocations: 0 / 0.5317 GB, free: 1.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002279/0.4848, allocations: 93.03 kB / 0.5318 GB, free: 1.762 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.4848, allocations: 51.41 kB / 0.5318 GB, free: 1.699 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.4861, allocations: 1.134 MB / 0.5329 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.4861, allocations: 25.7 kB / 0.5329 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.4864, allocations: 330.4 kB / 0.5333 GB, free: 204 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.4864, allocations: 12.02 kB / 0.5333 GB, free: 192 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.89e-05/0.4864, allocations: 8 kB / 0.5333 GB, free: 184 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.4866, allocations: 358.8 kB / 0.5336 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/0.487, allocations: 292.5 kB / 0.5339 GB, free: 15.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.4874, allocations: 439.7 kB / 0.5343 GB, free: 15.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003988/0.4878, allocations: 328.9 kB / 0.5346 GB, free: 14.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.4878, allocations: 4 kB / 0.5346 GB, free: 14.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001061/0.4889, allocations: 0.795 MB / 0.5354 GB, free: 13.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.4889, allocations: 8 kB / 0.5354 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.4889, allocations: 4 kB / 0.5354 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.814e-05/0.489, allocations: 8 kB / 0.5354 GB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.4893, allocations: 87.88 kB / 0.5355 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.4894, allocations: 15.12 kB / 0.5355 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.4898, allocations: 53.58 kB / 0.5356 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.4898, allocations: 24 kB / 0.5356 GB, free: 13.72 MB / 410.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 0.0001044/0.4899, allocations: 124.8 kB / 0.5357 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.575e-05/0.49, allocations: 51.3 kB / 0.5358 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.912e-05/0.4901, allocations: 43.66 kB / 0.5358 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.4901, allocations: 0 / 0.5358 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4901, allocations: 7.984 kB / 0.5358 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4901, allocations: 0 / 0.5358 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007366/0.4909, allocations: 0.5805 MB / 0.5364 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.4909, allocations: 0 / 0.5364 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.399e-05/0.4909, allocations: 4 kB / 0.5364 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.4909, allocations: 0 / 0.5364 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.4909, allocations: 0 / 0.5364 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.491, allocations: 0 / 0.5364 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.491, allocations: 3.938 kB / 0.5364 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000163/0.4911, allocations: 122.9 kB / 0.5365 GB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.4913, allocations: 156.4 kB / 0.5367 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.344e-05/0.4914, allocations: 0 / 0.5367 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.4915, allocations: 4 kB / 0.5367 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.4915, allocations: 3.984 kB / 0.5367 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-06/0.4915, allocations: 0 / 0.5367 GB, free: 12.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009845/0.4925, allocations: 0.9037 MB / 0.5376 GB, free: 11.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4925, allocations: 0 / 0.5376 GB, free: 11.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005683/0.4931, allocations: 163.9 kB / 0.5377 GB, free: 11.46 MB / 410.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.0004761/0.4936, allocations: 240.9 kB / 0.5379 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004875/0.4941, allocations: 371.6 kB / 0.5383 GB, free: 10.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4941, allocations: 0 / 0.5383 GB, free: 10.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.663e-05/0.4941, allocations: 13.23 kB / 0.5383 GB, free: 10.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007256/0.4949, allocations: 152.7 kB / 0.5385 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007236/0.4956, allocations: 391.5 kB / 0.5388 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.4961, allocations: 0.8233 MB / 0.5396 GB, free: 9.445 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002811/0.4964, allocations: 97.3 kB / 0.5397 GB, free: 9.363 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.261e-05/0.4964, allocations: 31.44 kB / 0.5398 GB, free: 9.332 MB / 410.7 MB Notification: Performance of SimCode: time 5.42e-07/0.4965, allocations: 0 / 0.5398 GB, free: 9.332 MB / 410.7 MB Notification: Performance of Templates: time 0.01359/0.51, allocations: 7.525 MB / 0.5471 GB, free: 1.973 MB / 410.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)