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.1143/0.1143, 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.001245/0.001246, 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.482/1.482, allocations: 221.4 MB / 258.8 MB, free: 16 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 102 kB / 314 MB, free: 15.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.928e-05/3.959e-05, allocations: 4 kB / 376.6 MB, free: 1.348 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3816, allocations: 54.61 MB / 431.2 MB, free: 50.1 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1367/0.5184, allocations: 95.27 MB / 0.5141 GB, free: 4.004 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.5187, allocations: 67.97 kB / 0.5142 GB, free: 3.938 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.03415/0.5529, allocations: 12.38 MB / 0.5263 GB, free: 7.715 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.5529, allocations: 4 kB / 0.5263 GB, free: 7.711 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.009e-05/0.553, allocations: 8 kB / 0.5263 GB, free: 7.703 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.001025/0.554, allocations: 0.6702 MB / 0.5269 GB, free: 6.984 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.5541, allocations: 8.031 kB / 0.527 GB, free: 6.977 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.937e-05/0.5542, allocations: 62.53 kB / 0.527 GB, free: 6.906 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005/0.5547, allocations: 151.6 kB / 0.5272 GB, free: 6.758 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.5553, allocations: 425.5 kB / 0.5276 GB, free: 6.301 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.5554, allocations: 28.45 kB / 0.5276 GB, free: 6.273 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.776e-05/0.5554, allocations: 24 kB / 0.5276 GB, free: 6.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009581/0.5564, allocations: 0.7208 MB / 0.5283 GB, free: 5.492 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.5564, allocations: 2.062 kB / 0.5283 GB, free: 5.492 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.5564, allocations: 12 kB / 0.5283 GB, free: 5.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.5565, allocations: 8 kB / 0.5283 GB, free: 5.473 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.5578, allocations: 1.099 MB / 0.5294 GB, free: 4.375 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003116/0.5609, allocations: 2.401 MB / 0.5318 GB, free: 1.887 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.081e-05/0.561, allocations: 34.47 kB / 0.5318 GB, free: 1.844 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.362e-05/0.561, allocations: 16.91 kB / 0.5318 GB, free: 1.824 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.5611, allocations: 0 / 0.5318 GB, free: 1.824 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.5611, allocations: 34.5 kB / 0.5318 GB, free: 1.781 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.5611, allocations: 0 / 0.5318 GB, free: 1.781 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001981/0.5613, allocations: 93.03 kB / 0.5319 GB, free: 1.684 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.5614, allocations: 55.44 kB / 0.532 GB, free: 1.617 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.5627, allocations: 1.137 MB / 0.5331 GB, free: 484 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.5627, allocations: 25.7 kB / 0.5331 GB, free: 452 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002735/0.563, allocations: 326.4 kB / 0.5334 GB, free: 120 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.563, allocations: 4 kB / 0.5334 GB, free: 116 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.912e-05/0.563, allocations: 8 kB / 0.5334 GB, free: 108 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.5632, allocations: 362.8 kB / 0.5338 GB, free: 15.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003299/0.5636, allocations: 296.5 kB / 0.5341 GB, free: 15.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.564, allocations: 438.7 kB / 0.5345 GB, free: 14.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004253/0.5644, allocations: 329.3 kB / 0.5348 GB, free: 14.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.5644, allocations: 4 kB / 0.5348 GB, free: 14.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001036/0.5655, allocations: 0.7998 MB / 0.5356 GB, free: 13.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.5655, allocations: 8.625 kB / 0.5356 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.5655, allocations: 4 kB / 0.5356 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.5656, allocations: 13.75 kB / 0.5356 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.5659, allocations: 87.81 kB / 0.5357 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.566, allocations: 8 kB / 0.5357 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.5664, allocations: 51.47 kB / 0.5357 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.5664, allocations: 19.98 kB / 0.5358 GB, free: 13.64 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 9.424e-05/0.5665, allocations: 124.8 kB / 0.5359 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.148e-05/0.5666, allocations: 51.3 kB / 0.5359 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.593e-05/0.5667, allocations: 43.66 kB / 0.536 GB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.5667, allocations: 4 kB / 0.536 GB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5667, allocations: 4 kB / 0.536 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.5667, allocations: 3.984 kB / 0.536 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.5674, allocations: 0.5844 MB / 0.5366 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5674, allocations: 0 / 0.5366 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.475e-05/0.5675, allocations: 4 kB / 0.5366 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.5675, allocations: 3.938 kB / 0.5366 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.5675, allocations: 1.75 kB / 0.5366 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5675, allocations: 4.031 kB / 0.5366 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5675, allocations: 1.641 kB / 0.5366 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.5676, allocations: 108.6 kB / 0.5367 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/0.5678, allocations: 160.3 kB / 0.5368 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.457e-05/0.5679, allocations: 0 / 0.5368 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.568, allocations: 4 kB / 0.5368 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.584e-05/0.568, allocations: 0 / 0.5368 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.5681, allocations: 32 / 0.5368 GB, free: 12.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009701/0.569, allocations: 0.9076 MB / 0.5377 GB, free: 11.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.569, allocations: 0 / 0.5377 GB, free: 11.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005576/0.5696, allocations: 163.9 kB / 0.5379 GB, free: 11.38 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.0007713/0.5704, allocations: 0.7965 MB / 0.5387 GB, free: 10.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005086/0.5709, allocations: 377.2 kB / 0.539 GB, free: 10.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5709, allocations: 0 / 0.539 GB, free: 10.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.61e-05/0.5709, allocations: 9.25 kB / 0.539 GB, free: 10.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000732/0.5717, allocations: 165.4 kB / 0.5392 GB, free: 10.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.5728, allocations: 0.4931 MB / 0.5397 GB, free: 9.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.5732, allocations: 0.8233 MB / 0.5405 GB, free: 8.648 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002901/0.5735, allocations: 86.67 kB / 0.5405 GB, free: 8.574 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.5737, allocations: 155.4 kB / 0.5407 GB, free: 8.422 MB / 410.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5737, allocations: 3.938 kB / 0.5407 GB, free: 8.418 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03207/0.6058, allocations: 11.75 MB / 0.5522 GB, free: 12.98 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.6061, allocations: 155.4 kB / 0.5523 GB, free: 12.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/3.05, allocations: 0 / 0.5523 GB, free: 12.75 MB / 426.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)