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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07909/0.07909, allocations: 15.26 MB / 22.73 MB, free: 0.9414 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.0009815/0.0009816, allocations: 192.9 kB / 27.52 MB, free: 6.105 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.267/1.267, allocations: 221.5 MB / 253.7 MB, free: 10.32 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.0008168/0.0008168, allocations: 92.67 kB / 308.7 MB, free: 10.47 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.439e-05/1.443e-05, allocations: 2.75 kB / 369.7 MB, free: 53.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0752/0.07522, allocations: 54.64 MB / 424.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2942/0.3695, allocations: 94.6 MB / 0.5067 GB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001609/0.3697, allocations: 73.11 kB / 0.5068 GB, free: 12.39 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 - DAE generated: time 0.02438/0.3941, allocations: 12.2 MB / 0.5187 GB, free: 27.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.3941, allocations: 0 / 0.5187 GB, free: 27.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.3941, allocations: 7.594 kB / 0.5187 GB, free: 27.32 MB / 378.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.0005809/0.3947, allocations: 0.6746 MB / 0.5194 GB, free: 26.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.568e-05/0.3948, allocations: 11.73 kB / 0.5194 GB, free: 26.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003981/0.3952, allocations: 149.2 kB / 0.5195 GB, free: 26.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004011/0.3956, allocations: 432.6 kB / 0.52 GB, free: 26.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.906e-06/0.3956, allocations: 11.73 kB / 0.52 GB, free: 26.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.3956, allocations: 19.41 kB / 0.52 GB, free: 26.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007968/0.3964, allocations: 1.073 MB / 0.521 GB, free: 26.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004354/0.3969, allocations: 0.5174 MB / 0.5215 GB, free: 26.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3969, allocations: 7.938 kB / 0.5215 GB, free: 26.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.3969, allocations: 7.922 kB / 0.5216 GB, free: 26.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3969, allocations: 7.719 kB / 0.5216 GB, free: 26.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.3989, allocations: 2.336 MB / 0.5238 GB, free: 25.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.67e-05/0.399, allocations: 25.53 kB / 0.5239 GB, free: 25.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.655e-05/0.399, allocations: 8.766 kB / 0.5239 GB, free: 25.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.399, allocations: 11.89 kB / 0.5239 GB, free: 25.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.708e-06/0.399, allocations: 38.06 kB / 0.5239 GB, free: 25.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.399, allocations: 0 / 0.5239 GB, free: 25.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001218/0.3991, allocations: 86.31 kB / 0.524 GB, free: 25.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.854e-05/0.3992, allocations: 51.41 kB / 0.5241 GB, free: 25.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007627/0.3999, allocations: 1.08 MB / 0.5251 GB, free: 24.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.277e-06/0.3999, allocations: 25.7 kB / 0.5251 GB, free: 24.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.4001, allocations: 324.1 kB / 0.5254 GB, free: 24.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.713e-06/0.4001, allocations: 15.48 kB / 0.5255 GB, free: 24.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.523e-05/0.4001, allocations: 0 / 0.5255 GB, free: 24.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.4002, allocations: 356.1 kB / 0.5258 GB, free: 24.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.4004, allocations: 287.2 kB / 0.5261 GB, free: 24.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.4007, allocations: 426.6 kB / 0.5265 GB, free: 24.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008413/0.4015, allocations: 471.8 kB / 0.5269 GB, free: 24.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4015, allocations: 0 / 0.5269 GB, free: 24.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001238/0.4028, allocations: 0.8904 MB / 0.5278 GB, free: 24.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.4028, allocations: 13.34 kB / 0.5278 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4028, allocations: 11.81 kB / 0.5278 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.4028, allocations: 7.625 kB / 0.5278 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.4031, allocations: 88.8 kB / 0.5279 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.4031, allocations: 7.688 kB / 0.5279 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.4034, allocations: 38.78 kB / 0.528 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.4035, allocations: 21.81 kB / 0.528 GB, free: 24.12 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.719e-05/0.4035, allocations: 112.7 kB / 0.5281 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.815e-05/0.4036, allocations: 96.86 kB / 0.5282 GB, free: 23.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.44e-05/0.4037, allocations: 46.52 kB / 0.5282 GB, free: 23.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.55e-05/0.4037, allocations: 41.5 kB / 0.5283 GB, free: 23.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.4037, allocations: 0 / 0.5283 GB, free: 23.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.4037, allocations: 0 / 0.5283 GB, free: 23.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.4038, allocations: 0 / 0.5283 GB, free: 23.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004263/0.4042, allocations: 0.551 MB / 0.5288 GB, free: 23.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4042, allocations: 7.141 kB / 0.5288 GB, free: 23.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.088e-05/0.4042, allocations: 7.812 kB / 0.5288 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4042, allocations: 0 / 0.5288 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-06/0.4042, allocations: 0 / 0.5288 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.4042, allocations: 3.938 kB / 0.5288 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.4043, allocations: 3.938 kB / 0.5288 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.111e-05/0.4043, allocations: 114.1 kB / 0.5289 GB, free: 23.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.103e-05/0.4044, allocations: 150.2 kB / 0.5291 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.302e-05/0.4045, allocations: 4.031 kB / 0.5291 GB, free: 23.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.4046, allocations: 0 / 0.5291 GB, free: 23.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.118e-05/0.4047, allocations: 0 / 0.5291 GB, free: 23.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-06/0.4047, allocations: 3.75 kB / 0.5291 GB, free: 23.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005411/0.4052, allocations: 0.8451 MB / 0.5299 GB, free: 23.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4052, allocations: 0 / 0.5299 GB, free: 23.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003754/0.4056, allocations: 160.4 kB / 0.5301 GB, free: 23.22 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.0004744/0.4061, allocations: 0.7925 MB / 0.5308 GB, free: 22.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.4064, allocations: 358.6 kB / 0.5312 GB, free: 22.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4064, allocations: 1.25 kB / 0.5312 GB, free: 22.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.116e-05/0.4064, allocations: 14.17 kB / 0.5312 GB, free: 22.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.4069, allocations: 135.5 kB / 0.5313 GB, free: 22.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006683/0.4076, allocations: 499.3 kB / 0.5318 GB, free: 22.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.4079, allocations: 0.8245 MB / 0.5326 GB, free: 21.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002129/0.4081, allocations: 85.77 kB / 0.5327 GB, free: 21.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.4083, allocations: 148.3 kB / 0.5328 GB, free: 21.56 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4083, allocations: 0 / 0.5328 GB, free: 21.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.4325, allocations: 9.939 MB / 0.5425 GB, free: 17.09 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001196/0.4327, allocations: 154.5 kB / 0.5427 GB, free: 16.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.374, allocations: 0 / 0.5427 GB, free: 16.9 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)