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: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_Get_DfG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_Get_DfG",fmuType="me",version="2.0",platforms={"static"}) [: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.07369/0.07369, allocations: 15.26 MB / 22.54 MB, free: 2.914 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.001073/0.001073, allocations: 186.2 kB / 27.31 MB, free: 4.312 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.145/1.145, allocations: 221.4 MB / 253.3 MB, free: 10.28 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.000851/0.000851, allocations: 99.67 kB / 308.4 MB, free: 10.61 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1898/0.1907, allocations: 60.73 MB / 369.1 MB, free: 53.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07606/0.2667, allocations: 54.63 MB / 423.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2791/0.5459, allocations: 94.53 MB / 0.5061 GB, free: 8.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/0.5461, allocations: 71.81 kB / 0.5062 GB, free: 8.191 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: 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.02689/0.573, allocations: 12.64 MB / 0.5186 GB, free: 6.902 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.573, allocations: 7.625 kB / 0.5186 GB, free: 6.902 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005155/0.5735, allocations: 161 kB / 0.5187 GB, free: 6.867 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/0.5742, allocations: 423.7 kB / 0.5191 GB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.5742, allocations: 7.719 kB / 0.5191 GB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.5742, allocations: 15.5 kB / 0.5191 GB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001035/0.5753, allocations: 1.086 MB / 0.5202 GB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.5758, allocations: 0.5281 MB / 0.5207 GB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.5758, allocations: 3.938 kB / 0.5207 GB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.5759, allocations: 0 / 0.5207 GB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.5759, allocations: 7.781 kB / 0.5207 GB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.5786, allocations: 2.501 MB / 0.5232 GB, free: 21.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.35e-05/0.5786, allocations: 22.98 kB / 0.5232 GB, free: 21.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.518e-05/0.5787, allocations: 16.89 kB / 0.5232 GB, free: 21.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.251e-06/0.5787, allocations: 0 / 0.5232 GB, free: 21.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.5787, allocations: 35.39 kB / 0.5232 GB, free: 21.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.5787, allocations: 4 kB / 0.5232 GB, free: 21.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001714/0.5789, allocations: 87.98 kB / 0.5233 GB, free: 21.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.642e-05/0.5789, allocations: 55.34 kB / 0.5234 GB, free: 21.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.5799, allocations: 1.08 MB / 0.5244 GB, free: 20.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.5799, allocations: 31.23 kB / 0.5245 GB, free: 20.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.5801, allocations: 266.5 kB / 0.5247 GB, free: 20.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.216e-06/0.5801, allocations: 9.609 kB / 0.5247 GB, free: 20.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.622e-05/0.5801, allocations: 0 / 0.5247 GB, free: 20.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5802, allocations: 364.9 kB / 0.5251 GB, free: 20.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.5805, allocations: 290.3 kB / 0.5254 GB, free: 20.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.5808, allocations: 428.7 kB / 0.5258 GB, free: 20.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.5819, allocations: 487.1 kB / 0.5262 GB, free: 20.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.5819, allocations: 0.6094 kB / 0.5262 GB, free: 20.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001445/0.5833, allocations: 0.9158 MB / 0.5271 GB, free: 20.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.5833, allocations: 4.5 kB / 0.5271 GB, free: 20.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.5834, allocations: 3.875 kB / 0.5271 GB, free: 20.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.5834, allocations: 15.81 kB / 0.5271 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.5837, allocations: 82.22 kB / 0.5272 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.5837, allocations: 12.34 kB / 0.5272 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.5841, allocations: 40.56 kB / 0.5273 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.5841, allocations: 21.16 kB / 0.5273 GB, free: 20.04 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 8.143e-05/0.5842, allocations: 117.2 kB / 0.5274 GB, free: 19.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.66e-05/0.5843, allocations: 43.56 kB / 0.5274 GB, free: 19.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.889e-05/0.5844, allocations: 47.06 kB / 0.5275 GB, free: 19.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.5844, allocations: 4 kB / 0.5275 GB, free: 19.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5844, allocations: 0 / 0.5275 GB, free: 19.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.5844, allocations: 0.7031 kB / 0.5275 GB, free: 19.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005765/0.585, allocations: 0.5468 MB / 0.528 GB, free: 19.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.585, allocations: 4.516 kB / 0.528 GB, free: 19.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.499e-05/0.585, allocations: 4.391 kB / 0.528 GB, free: 19.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.585, allocations: 0 / 0.528 GB, free: 19.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.585, allocations: 0 / 0.528 GB, free: 19.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.585, allocations: 8.734 kB / 0.528 GB, free: 19.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.585, allocations: 0 / 0.528 GB, free: 19.53 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000104/0.5851, allocations: 114.8 kB / 0.5282 GB, free: 19.44 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000216/0.5854, allocations: 0.4953 MB / 0.5286 GB, free: 18.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.5855, allocations: 143.1 kB / 0.5288 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.013e-05/0.5856, allocations: 4.438 kB / 0.5288 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.5858, allocations: 0.5625 kB / 0.5288 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.5858, allocations: 0.7031 kB / 0.5288 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.5858, allocations: 3.938 kB / 0.5288 GB, free: 18.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006667/0.5865, allocations: 0.8568 MB / 0.5296 GB, free: 18.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009872/0.5874, allocations: 169.7 kB / 0.5298 GB, free: 18.72 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.0003306/0.5878, allocations: 247.2 kB / 0.53 GB, free: 18.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003562/0.5881, allocations: 368.6 kB / 0.5304 GB, free: 18.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5882, allocations: 0 / 0.5304 GB, free: 18.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.194e-05/0.5882, allocations: 7.875 kB / 0.5304 GB, free: 18.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000558/0.5887, allocations: 148.5 kB / 0.5305 GB, free: 18.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000664/0.5894, allocations: 387.1 kB / 0.5309 GB, free: 18.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004556/0.5899, allocations: 0.8653 MB / 0.5317 GB, free: 17.49 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5899, allocations: 0 / 0.5317 GB, free: 17.49 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_Get_DfG_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_Get_DfG.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.pipe 2>&1)