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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0008812/0.0008812, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001052/0.001052, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2254/0.2254, allocations: 15.26 MB / 306.3 MB, free: 15.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000498/0.0004981, allocations: 12 kB / 371.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.278, allocations: 54.62 MB / 426.2 MB, free: 39.88 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.002909/0.2809, allocations: 3.126 MB / 429.3 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005147/0.2861, allocations: 5.81 MB / 435.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000334/0.2865, allocations: 18.38 kB / 435.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003717/0.2868, allocations: 148.2 kB / 435.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005363/0.2874, allocations: 257.7 kB / 435.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001582/0.289, allocations: 0.7888 MB / 436.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004494/0.2894, allocations: 487.5 kB / 436.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.2897, allocations: 167.6 kB / 437 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.2899, allocations: 185.2 kB / 437.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.2901, allocations: 241 kB / 437.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.2902, allocations: 19.2 kB / 437.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.2912, allocations: 0.5155 MB / 437.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.726e-05/0.2913, allocations: 85.88 kB / 438 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.173e-05/0.2914, allocations: 92.67 kB / 438.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006477/0.2921, allocations: 0.7889 MB / 438.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2921, allocations: 4 kB / 438.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2921, allocations: 0 / 438.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.2921, allocations: 0 / 438.9 MB, free: 34.93 MB / 350.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.0007942/0.2929, allocations: 0.695 MB / 439.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2929, allocations: 9.281 kB / 439.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.508e-05/0.293, allocations: 66.72 kB / 439.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004451/0.2935, allocations: 117.2 kB / 439.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.2938, allocations: 355.2 kB / 440.1 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.2938, allocations: 20.41 kB / 440.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.2939, allocations: 23.22 kB / 440.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.2944, allocations: 441.3 kB / 440.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2944, allocations: 3.094 kB / 440.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.376e-05/0.2945, allocations: 18.28 kB / 440.6 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.2945, allocations: 6.438 kB / 440.6 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006585/0.2952, allocations: 0.5781 MB / 441.2 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.2968, allocations: 1.746 MB / 442.9 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.297, allocations: 143.6 kB / 443.1 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.2971, allocations: 77.61 kB / 443.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001471/0.2986, allocations: 1.829 MB / 445 MB, free: 30.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.248e-05/0.2986, allocations: 30.56 kB / 445 MB, free: 30.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/0.2986, allocations: 3.938 kB / 445 MB, free: 30.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003186/0.299, allocations: 182.9 kB / 445.2 MB, free: 30.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/0.299, allocations: 55.44 kB / 445.2 MB, free: 30.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.2994, allocations: 440.3 kB / 445.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.2994, allocations: 29.7 kB / 445.7 MB, free: 30.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.2995, allocations: 261 kB / 446 MB, free: 29.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.2995, allocations: 37.23 kB / 446 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.2996, allocations: 8 kB / 446 MB, free: 29.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.228e-05/0.2996, allocations: 350.3 kB / 446.3 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.2997, allocations: 71.88 kB / 446.4 MB, free: 29.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.2999, allocations: 283.7 kB / 446.7 MB, free: 29.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001526/0.3001, allocations: 115.1 kB / 446.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3001, allocations: 0 / 446.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004783/0.3006, allocations: 392.6 kB / 447.2 MB, free: 29.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.3006, allocations: 9.156 kB / 447.2 MB, free: 29.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.3006, allocations: 10.55 kB / 447.2 MB, free: 29.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3006, allocations: 13 kB / 447.2 MB, free: 29.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.3009, allocations: 88.52 kB / 447.3 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3009, allocations: 13.88 kB / 447.3 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.3011, allocations: 47.47 kB / 447.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.3012, allocations: 26.11 kB / 447.4 MB, free: 28.96 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.3013, allocations: 179.5 kB / 447.6 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.3013, allocations: 34.88 kB / 447.6 MB, free: 28.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003942/0.3017, allocations: 230.7 kB / 447.8 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.3018, allocations: 7.359 kB / 447.8 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3018, allocations: 0 / 447.8 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.3018, allocations: 3.156 kB / 447.8 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003751/0.3022, allocations: 0.5273 MB / 448.4 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3022, allocations: 3.25 kB / 448.4 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.073e-05/0.3022, allocations: 4 kB / 448.4 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3022, allocations: 3.469 kB / 448.4 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.3022, allocations: 0 / 448.4 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3022, allocations: 3.438 kB / 448.4 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3022, allocations: 4 kB / 448.4 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.525e-05/0.3023, allocations: 108.7 kB / 448.5 MB, free: 28.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.784e-05/0.3024, allocations: 124.2 kB / 448.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.71e-05/0.3025, allocations: 0 / 448.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.279e-05/0.3026, allocations: 3.422 kB / 448.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.606e-05/0.3026, allocations: 7.031 kB / 448.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.3026, allocations: 0 / 448.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002912/0.3029, allocations: 343.1 kB / 448.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3029, allocations: 0 / 448.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005271/0.3034, allocations: 170.8 kB / 449.1 MB, free: 27.75 MB / 350.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 (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.0005268/0.304, allocations: 0.8427 MB / 450 MB, free: 27.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000233/0.3042, allocations: 160.2 kB / 450.1 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3042, allocations: 0 / 450.1 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.33e-05/0.3042, allocations: 9.688 kB / 450.1 MB, free: 26.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004443/0.3047, allocations: 85.34 kB / 450.2 MB, free: 26.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.3068, allocations: 2.118 MB / 452.3 MB, free: 25.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.307, allocations: 0.7843 MB / 453.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002993/0.3073, allocations: 102.9 kB / 453.2 MB, free: 24.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.3074, allocations: 131.6 kB / 453.3 MB, free: 24.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3074, allocations: 0 / 453.3 MB, free: 24.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01996/0.3274, allocations: 9.603 MB / 462.9 MB, free: 24.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001266/0.3276, allocations: 194.6 kB / 463.1 MB, free: 23.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/2.245, allocations: 0 / 463.1 MB, free: 23.78 MB / 350.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 & /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) Environment - environmentSimulation: