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.001471/0.001471, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 197.9 kB / 16.53 MB, free: 6.672 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.874/1.874, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2394/0.2394, allocations: 15.31 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.91 kB / 370.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.101, allocations: 53.61 MB / 424.1 MB, free: 14.19 MB / 366.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.3026/0.4036, allocations: 22.65 MB / 446.7 MB, free: 40.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005782/0.4094, allocations: 6.295 MB / 453 MB, free: 36.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004895/0.41, allocations: 7.25 kB / 453 MB, free: 36.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006071/0.4106, allocations: 159.3 kB / 453.2 MB, free: 36.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008518/0.4115, allocations: 251.4 kB / 453.4 MB, free: 36.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.4142, allocations: 0.9684 MB / 454.4 MB, free: 36.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000592/0.4148, allocations: 0.4924 MB / 454.9 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/0.415, allocations: 211.8 kB / 455.1 MB, free: 36.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.4152, allocations: 242.1 kB / 455.3 MB, free: 36.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002837/0.4155, allocations: 260.7 kB / 455.6 MB, free: 36.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-05/0.4156, allocations: 28.16 kB / 455.6 MB, free: 36.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.4169, allocations: 0.5546 MB / 456.2 MB, free: 35.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.417, allocations: 95.11 kB / 456.2 MB, free: 35.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.4172, allocations: 205.3 kB / 456.4 MB, free: 35.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.4185, allocations: 1.056 MB / 457.5 MB, free: 35.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4185, allocations: 4 kB / 457.5 MB, free: 35.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4185, allocations: 0 / 457.5 MB, free: 35.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.4185, allocations: 0 / 457.5 MB, free: 35.57 MB / 366.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.0009673/0.4195, allocations: 0.7946 MB / 458.3 MB, free: 35.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.4195, allocations: 9.469 kB / 458.3 MB, free: 35.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.049e-05/0.4196, allocations: 63.16 kB / 458.4 MB, free: 34.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004984/0.4201, allocations: 116.7 kB / 458.5 MB, free: 34.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.4205, allocations: 374 kB / 458.8 MB, free: 34.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.4206, allocations: 22.78 kB / 458.9 MB, free: 34.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.323e-05/0.4206, allocations: 27.53 kB / 458.9 MB, free: 34.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.4212, allocations: 444.1 kB / 459.3 MB, free: 34.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.4212, allocations: 1.125 kB / 459.3 MB, free: 34.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.4212, allocations: 13.72 kB / 459.3 MB, free: 34.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.4212, allocations: 6.25 kB / 459.4 MB, free: 34.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006925/0.4219, allocations: 0.5822 MB / 459.9 MB, free: 34.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.4237, allocations: 1.76 MB / 461.7 MB, free: 33.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.4239, allocations: 145.5 kB / 461.8 MB, free: 33.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.4241, allocations: 83.89 kB / 461.9 MB, free: 33.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001661/0.4257, allocations: 1.873 MB / 463.8 MB, free: 31.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.4258, allocations: 37.69 kB / 463.8 MB, free: 31.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.4258, allocations: 0 / 463.8 MB, free: 31.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003571/0.4261, allocations: 186.6 kB / 464 MB, free: 31.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.426e-05/0.4262, allocations: 55.34 kB / 464.1 MB, free: 31.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.4266, allocations: 437.7 kB / 464.5 MB, free: 31.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.4266, allocations: 25.7 kB / 464.5 MB, free: 31.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.4267, allocations: 261 kB / 464.8 MB, free: 31.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.4268, allocations: 41.83 kB / 464.8 MB, free: 31.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/0.4268, allocations: 82.72 kB / 464.9 MB, free: 31.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.623e-05/0.4269, allocations: 354.1 kB / 465.2 MB, free: 30.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.427, allocations: 67.91 kB / 465.3 MB, free: 30.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.4272, allocations: 287.1 kB / 465.6 MB, free: 30.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/0.4275, allocations: 386.1 kB / 466 MB, free: 30.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4275, allocations: 2.875 kB / 466 MB, free: 30.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004786/0.428, allocations: 392.7 kB / 466.3 MB, free: 29.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.428, allocations: 9.594 kB / 466.4 MB, free: 29.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.428, allocations: 6.312 kB / 466.4 MB, free: 29.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.4281, allocations: 12.5 kB / 466.4 MB, free: 29.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.4283, allocations: 94.19 kB / 466.5 MB, free: 29.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.4283, allocations: 11.41 kB / 466.5 MB, free: 29.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.4286, allocations: 46.28 kB / 466.5 MB, free: 29.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.417e-05/0.4286, allocations: 34.92 kB / 466.6 MB, free: 29.84 MB / 366.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.0001207/0.4287, allocations: 161.5 kB / 466.7 MB, free: 29.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.4288, allocations: 41.78 kB / 466.8 MB, free: 29.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004332/0.4292, allocations: 232.1 kB / 467 MB, free: 29.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.4293, allocations: 3.938 kB / 467 MB, free: 29.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4293, allocations: 0 / 467 MB, free: 29.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.4293, allocations: 5.188 kB / 467 MB, free: 29.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004163/0.4297, allocations: 0.5336 MB / 467.5 MB, free: 29.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4297, allocations: 1.25 kB / 467.5 MB, free: 29.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.273e-05/0.4297, allocations: 5.125 kB / 467.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4297, allocations: 1.188 kB / 467.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-06/0.4298, allocations: 0 / 467.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4298, allocations: 3.938 kB / 467.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4298, allocations: 1.188 kB / 467.5 MB, free: 29.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000105/0.4299, allocations: 112.7 kB / 467.7 MB, free: 28.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.513e-05/0.43, allocations: 117.1 kB / 467.8 MB, free: 28.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.43, allocations: 6.562 kB / 467.8 MB, free: 28.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.175e-05/0.4301, allocations: 4 kB / 467.8 MB, free: 28.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.56e-05/0.4301, allocations: 1.031 kB / 467.8 MB, free: 28.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.4301, allocations: 0 / 467.8 MB, free: 28.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003441/0.4305, allocations: 367.4 kB / 468.1 MB, free: 28.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.81e-07/0.4305, allocations: 4.031 kB / 468.1 MB, free: 28.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005773/0.4311, allocations: 177.7 kB / 468.3 MB, free: 28.6 MB / 366.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.0006292/0.4317, allocations: 0.8404 MB / 469.2 MB, free: 27.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002736/0.432, allocations: 160.5 kB / 469.3 MB, free: 27.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.432, allocations: 1 kB / 469.3 MB, free: 27.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.74e-05/0.432, allocations: 11.88 kB / 469.3 MB, free: 27.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005038/0.4325, allocations: 83.91 kB / 469.4 MB, free: 27.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.4359, allocations: 3.52 MB / 472.9 MB, free: 25.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.4361, allocations: 0.789 MB / 473.7 MB, free: 24.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003595/0.4365, allocations: 109.7 kB / 473.8 MB, free: 24.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.4366, allocations: 131.2 kB / 473.9 MB, free: 24.49 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4366, allocations: 0 / 473.9 MB, free: 24.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.4654, allocations: 10.1 MB / 484.1 MB, free: 23.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.594/10.06, allocations: 6.469 kB / 484.1 MB, free: 23.39 MB / 366.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)