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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01098/0.01098, allocations: 99.81 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002244/0.002244, allocations: 195.1 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.076/0.076, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 67.84 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09346, allocations: 53.61 MB / 478.3 MB, free: 6.301 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG): time 0.03233/0.1258, allocations: 22.75 MB / 0.4893 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00708/0.1329, allocations: 6.288 MB / 0.4954 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003236/0.1333, allocations: 15.88 kB / 0.4955 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004986/0.1338, allocations: 162.8 kB / 0.4956 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006943/0.1345, allocations: 254 kB / 0.4959 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.1365, allocations: 0.9665 MB / 0.4968 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006266/0.1371, allocations: 0.4982 MB / 0.4973 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.1374, allocations: 216.7 kB / 0.4975 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002855/0.1377, allocations: 239.3 kB / 0.4977 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.1381, allocations: 263 kB / 0.498 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.405e-05/0.1382, allocations: 28 kB / 0.498 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.1394, allocations: 0.5577 MB / 0.4985 GB, free: 6.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.1395, allocations: 87.69 kB / 0.4986 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000214/0.1397, allocations: 206.9 kB / 0.4988 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.1413, allocations: 1.07 MB / 0.4999 GB, free: 4.773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1413, allocations: 4 kB / 0.4999 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1413, allocations: 4 kB / 0.4999 GB, free: 4.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1413, allocations: 0 / 0.4999 GB, free: 4.766 MB / 382.1 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.001162/0.1425, allocations: 0.813 MB / 0.5007 GB, free: 3.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1425, allocations: 8.031 kB / 0.5007 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.64e-05/0.1426, allocations: 58.73 kB / 0.5007 GB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005464/0.1432, allocations: 120.3 kB / 0.5008 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000564/0.1437, allocations: 400 kB / 0.5012 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.1438, allocations: 20.94 kB / 0.5012 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.1438, allocations: 27.94 kB / 0.5013 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006428/0.1445, allocations: 442.1 kB / 0.5017 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1445, allocations: 0 / 0.5017 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.1445, allocations: 12 kB / 0.5017 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1446, allocations: 8 kB / 0.5017 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008262/0.1454, allocations: 0.5794 MB / 0.5023 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.1476, allocations: 1.761 MB / 0.504 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.1479, allocations: 134.5 kB / 0.5041 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.1481, allocations: 84.83 kB / 0.5042 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2039/0.352, allocations: 1.871 MB / 0.506 GB, free: 32.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.352, allocations: 36.53 kB / 0.5061 GB, free: 32.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.352, allocations: 0 / 0.5061 GB, free: 32.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004341/0.3525, allocations: 189.1 kB / 0.5062 GB, free: 32.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.3525, allocations: 53.42 kB / 0.5063 GB, free: 31.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005267/0.353, allocations: 439.9 kB / 0.5067 GB, free: 31.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.3531, allocations: 26.55 kB / 0.5067 GB, free: 31.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.3532, allocations: 269.6 kB / 0.507 GB, free: 31.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/0.3532, allocations: 39.84 kB / 0.507 GB, free: 31.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3534, allocations: 80.52 kB / 0.5071 GB, free: 31.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.809e-05/0.3534, allocations: 348.5 kB / 0.5074 GB, free: 31.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.3536, allocations: 73.11 kB / 0.5075 GB, free: 31.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.3538, allocations: 283.1 kB / 0.5078 GB, free: 31.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.3542, allocations: 393.7 kB / 0.5082 GB, free: 30.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3542, allocations: 1.375 kB / 0.5082 GB, free: 30.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005908/0.3548, allocations: 388.2 kB / 0.5085 GB, free: 30.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3548, allocations: 10.56 kB / 0.5085 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3548, allocations: 8.031 kB / 0.5086 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.3548, allocations: 10.81 kB / 0.5086 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/0.3551, allocations: 90.72 kB / 0.5087 GB, free: 30.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.3552, allocations: 16.02 kB / 0.5087 GB, free: 30.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.3554, allocations: 48.77 kB / 0.5087 GB, free: 30.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-05/0.3555, allocations: 29.02 kB / 0.5087 GB, free: 30.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.3556, allocations: 168.8 kB / 0.5089 GB, free: 30.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-05/0.3557, allocations: 37.17 kB / 0.5089 GB, free: 30.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004098/0.3561, allocations: 237.7 kB / 0.5092 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.3561, allocations: 1.375 kB / 0.5092 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3561, allocations: 0 / 0.5092 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3561, allocations: 2.375 kB / 0.5092 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.3566, allocations: 0.5371 MB / 0.5097 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3566, allocations: 2.625 kB / 0.5097 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.401e-05/0.3566, allocations: 3.156 kB / 0.5097 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3567, allocations: 4.609 kB / 0.5097 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.3567, allocations: 1.953 kB / 0.5097 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3567, allocations: 0 / 0.5097 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3567, allocations: 0 / 0.5097 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001182/0.3568, allocations: 121.1 kB / 0.5098 GB, free: 29.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.186e-05/0.3569, allocations: 119.3 kB / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.569e-05/0.357, allocations: 3.609 kB / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.3571, allocations: 2.938 kB / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.3571, allocations: 4.953 kB / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.3571, allocations: 5.875 kB / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000398/0.3575, allocations: 362.7 kB / 0.5103 GB, free: 29.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3575, allocations: 0 / 0.5103 GB, free: 29.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005464/0.3581, allocations: 175.9 kB / 0.5105 GB, free: 29.6 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000625/0.3587, allocations: 0.8507 MB / 0.5113 GB, free: 28.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002777/0.359, allocations: 165.1 kB / 0.5115 GB, free: 28.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.359, allocations: 1.188 kB / 0.5115 GB, free: 28.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.488e-05/0.359, allocations: 10.19 kB / 0.5115 GB, free: 28.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.3595, allocations: 95.78 kB / 0.5116 GB, free: 28.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00335/0.3629, allocations: 3.469 MB / 0.5149 GB, free: 26.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.3631, allocations: 0.7831 MB / 0.5157 GB, free: 25.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002966/0.3634, allocations: 99.03 kB / 0.5158 GB, free: 25.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.3636, allocations: 131.9 kB / 0.5159 GB, free: 25.68 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3636, allocations: 3.844 kB / 0.5159 GB, free: 25.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02937/0.393, allocations: 10.23 MB / 0.5259 GB, free: 23.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.153/8.546, allocations: 17.53 kB / 0.5259 GB, free: 23.43 MB / 382.1 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_Get_DfG.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.pipe 2>&1)