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.006421/0.006421, allocations: 98.17 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.001345/0.001345, allocations: 193.7 kB / 16.68 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09137/0.09137, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.89 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09953, allocations: 53.61 MB / 478.3 MB, free: 6.281 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.03571/0.1353, allocations: 23.09 MB / 0.4896 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007884/0.1432, allocations: 6.296 MB / 0.4958 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.1435, allocations: 11.88 kB / 0.4958 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004779/0.144, allocations: 162.8 kB / 0.4959 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005966/0.1446, allocations: 246.1 kB / 0.4962 GB, free: 8.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002053/0.1466, allocations: 0.9665 MB / 0.4971 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006341/0.1473, allocations: 0.4982 MB / 0.4976 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003074/0.1476, allocations: 192.8 kB / 0.4978 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.1479, allocations: 247.2 kB / 0.498 GB, free: 6.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.1483, allocations: 263 kB / 0.4983 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.792e-05/0.1483, allocations: 28 kB / 0.4983 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001243/0.1496, allocations: 0.5539 MB / 0.4989 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.1497, allocations: 95.61 kB / 0.4989 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.15, allocations: 207 kB / 0.4991 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001498/0.1515, allocations: 1.066 MB / 0.5002 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1515, allocations: 0 / 0.5002 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1515, allocations: 0 / 0.5002 GB, free: 4.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.1515, allocations: 0 / 0.5002 GB, free: 4.43 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.001192/0.1527, allocations: 0.8091 MB / 0.501 GB, free: 3.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.1527, allocations: 12.03 kB / 0.501 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.423e-05/0.1528, allocations: 66.72 kB / 0.501 GB, free: 3.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005478/0.1534, allocations: 116.3 kB / 0.5012 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006021/0.154, allocations: 396.1 kB / 0.5015 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.154, allocations: 16.94 kB / 0.5016 GB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.652e-05/0.1541, allocations: 31.94 kB / 0.5016 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007232/0.1548, allocations: 446 kB / 0.502 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.1549, allocations: 3.938 kB / 0.502 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.1549, allocations: 12 kB / 0.502 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1549, allocations: 8 kB / 0.502 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000927/0.1558, allocations: 0.5794 MB / 0.5026 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1836/0.3394, allocations: 1.756 MB / 0.5043 GB, free: 33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003701/0.3399, allocations: 139.7 kB / 0.5044 GB, free: 32.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.34, allocations: 83.64 kB / 0.5045 GB, free: 32.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002046/0.3421, allocations: 1.878 MB / 0.5064 GB, free: 31.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.3421, allocations: 32.7 kB / 0.5064 GB, free: 31.53 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.3421, allocations: 0 / 0.5064 GB, free: 31.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003764/0.3425, allocations: 196.4 kB / 0.5066 GB, free: 31.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.043e-05/0.3425, allocations: 52.03 kB / 0.5066 GB, free: 31.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004476/0.343, allocations: 431.3 kB / 0.507 GB, free: 31.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.343, allocations: 30.3 kB / 0.5071 GB, free: 31.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.3431, allocations: 266.2 kB / 0.5073 GB, free: 31.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.3432, allocations: 43.41 kB / 0.5074 GB, free: 31.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.3433, allocations: 77.7 kB / 0.5074 GB, free: 31.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.44e-05/0.3433, allocations: 349.6 kB / 0.5078 GB, free: 30.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.3435, allocations: 70.05 kB / 0.5078 GB, free: 30.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.3437, allocations: 286.1 kB / 0.5081 GB, free: 30.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.344, allocations: 388 kB / 0.5085 GB, free: 30.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.344, allocations: 2.375 kB / 0.5085 GB, free: 30.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005709/0.3446, allocations: 387.3 kB / 0.5089 GB, free: 30.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3446, allocations: 8.406 kB / 0.5089 GB, free: 30.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3447, allocations: 10.53 kB / 0.5089 GB, free: 30.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.3447, allocations: 14.8 kB / 0.5089 GB, free: 30.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.345, allocations: 91.08 kB / 0.509 GB, free: 30.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.345, allocations: 15.73 kB / 0.509 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.3452, allocations: 49.31 kB / 0.509 GB, free: 30.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.3453, allocations: 25.8 kB / 0.5091 GB, free: 30.11 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.0001503/0.3455, allocations: 172.5 kB / 0.5092 GB, free: 29.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.369e-05/0.3455, allocations: 37.14 kB / 0.5093 GB, free: 29.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004013/0.3459, allocations: 235.9 kB / 0.5095 GB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3459, allocations: 3.938 kB / 0.5095 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.346, allocations: 4.531 kB / 0.5095 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.346, allocations: 0 / 0.5095 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004868/0.3465, allocations: 0.5336 MB / 0.51 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3465, allocations: 0 / 0.51 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.386e-05/0.3465, allocations: 6.062 kB / 0.51 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3465, allocations: 4.031 kB / 0.51 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.3465, allocations: 0 / 0.51 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3465, allocations: 2.562 kB / 0.51 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3465, allocations: 1.375 kB / 0.51 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001219/0.3467, allocations: 112.6 kB / 0.5101 GB, free: 29.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.144e-05/0.3467, allocations: 128 kB / 0.5103 GB, free: 29.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.3468, allocations: 2.219 kB / 0.5103 GB, free: 29.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.96e-05/0.3469, allocations: 0 / 0.5103 GB, free: 29.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.031e-05/0.3469, allocations: 2.297 kB / 0.5103 GB, free: 29.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.3469, allocations: 0.5625 kB / 0.5103 GB, free: 29.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004175/0.3474, allocations: 366.7 kB / 0.5106 GB, free: 29.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3474, allocations: 0 / 0.5106 GB, free: 29.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005959/0.348, allocations: 174.1 kB / 0.5108 GB, free: 29.08 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.0006279/0.3486, allocations: 0.8514 MB / 0.5116 GB, free: 28.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000289/0.3489, allocations: 162.1 kB / 0.5118 GB, free: 28.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3489, allocations: 3.938 kB / 0.5118 GB, free: 28.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.658e-05/0.3489, allocations: 14.89 kB / 0.5118 GB, free: 28.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.3494, allocations: 93.05 kB / 0.5119 GB, free: 28.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.3526, allocations: 3.47 MB / 0.5153 GB, free: 25.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.3528, allocations: 0.7816 MB / 0.516 GB, free: 25.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002555/0.3531, allocations: 105.5 kB / 0.5161 GB, free: 25.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.3532, allocations: 131.5 kB / 0.5162 GB, free: 25.16 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3532, allocations: 1.312 kB / 0.5162 GB, free: 25.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03612/0.3894, allocations: 10.22 MB / 0.5262 GB, free: 22.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.48/8.869, allocations: 14.06 kB / 0.5262 GB, free: 22.92 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)