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.005445/0.005445, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.00114/0.00114, allocations: 197 kB / 16.68 MB, free: 5.93 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.331/1.331, 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.08431/0.08431, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002142/0.002142, allocations: 64.12 kB / 424.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1398, allocations: 53.61 MB / 478.3 MB, free: 6.258 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.04794/0.1878, allocations: 22.71 MB / 0.4893 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00694/0.1947, allocations: 6.292 MB / 0.4954 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002522/0.195, allocations: 7.938 kB / 0.4954 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004269/0.1955, allocations: 154.8 kB / 0.4956 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005418/0.196, allocations: 258 kB / 0.4958 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001786/0.1978, allocations: 0.9743 MB / 0.4968 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005539/0.1984, allocations: 0.5021 MB / 0.4972 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.1987, allocations: 200.8 kB / 0.4974 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.1989, allocations: 243.3 kB / 0.4977 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003162/0.1992, allocations: 271 kB / 0.4979 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.098e-05/0.1993, allocations: 28 kB / 0.498 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.2004, allocations: 0.5499 MB / 0.4985 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.2005, allocations: 95.66 kB / 0.4986 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.2007, allocations: 203 kB / 0.4988 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001325/0.202, allocations: 1.063 MB / 0.4998 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.202, allocations: 0 / 0.4998 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2021, allocations: 0 / 0.4998 GB, free: 4.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.2021, allocations: 4 kB / 0.4998 GB, free: 4.781 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.001034/0.2031, allocations: 0.7906 MB / 0.5006 GB, free: 3.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2032, allocations: 12.03 kB / 0.5006 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.369e-05/0.2032, allocations: 62.72 kB / 0.5007 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005019/0.2037, allocations: 116.1 kB / 0.5008 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/0.2042, allocations: 391.7 kB / 0.5011 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.2043, allocations: 16.94 kB / 0.5012 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.226e-05/0.2043, allocations: 31.94 kB / 0.5012 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005966/0.2049, allocations: 442.1 kB / 0.5016 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2049, allocations: 0 / 0.5016 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.205, allocations: 16 kB / 0.5016 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.205, allocations: 8 kB / 0.5016 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008231/0.2058, allocations: 0.5872 MB / 0.5022 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.208, allocations: 1.753 MB / 0.5039 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002809/0.2083, allocations: 146.5 kB / 0.5041 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.2084, allocations: 84.77 kB / 0.5041 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1758/0.3842, allocations: 1.854 MB / 0.506 GB, free: 32.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.534e-05/0.3843, allocations: 43.02 kB / 0.506 GB, free: 32.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.3843, allocations: 0 / 0.506 GB, free: 32.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004029/0.3847, allocations: 191.3 kB / 0.5062 GB, free: 32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.3847, allocations: 56.91 kB / 0.5062 GB, free: 31.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.3852, allocations: 430.6 kB / 0.5066 GB, free: 31.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.3852, allocations: 30.45 kB / 0.5067 GB, free: 31.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.3854, allocations: 265 kB / 0.5069 GB, free: 31.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.3854, allocations: 40.36 kB / 0.507 GB, free: 31.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.3855, allocations: 74.42 kB / 0.507 GB, free: 31.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.3856, allocations: 349.9 kB / 0.5074 GB, free: 31.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.3857, allocations: 74.08 kB / 0.5074 GB, free: 31.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.3859, allocations: 286.1 kB / 0.5077 GB, free: 31.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.3863, allocations: 387.2 kB / 0.5081 GB, free: 30.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3863, allocations: 2.844 kB / 0.5081 GB, free: 30.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005681/0.3869, allocations: 389.4 kB / 0.5085 GB, free: 30.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3869, allocations: 13.03 kB / 0.5085 GB, free: 30.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.3869, allocations: 10.64 kB / 0.5085 GB, free: 30.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.3869, allocations: 10.14 kB / 0.5085 GB, free: 30.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.3872, allocations: 91.17 kB / 0.5086 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.3872, allocations: 17.84 kB / 0.5086 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.3875, allocations: 42.84 kB / 0.5086 GB, free: 30.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.3875, allocations: 29.02 kB / 0.5087 GB, free: 30.62 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.0001236/0.3877, allocations: 164.8 kB / 0.5088 GB, free: 30.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.3877, allocations: 36.53 kB / 0.5089 GB, free: 30.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000398/0.3881, allocations: 240.5 kB / 0.5091 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3881, allocations: 0 / 0.5091 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3881, allocations: 1.219 kB / 0.5091 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3882, allocations: 0.7969 kB / 0.5091 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004412/0.3886, allocations: 0.5369 MB / 0.5096 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3886, allocations: 7.391 kB / 0.5096 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.398e-05/0.3886, allocations: 2.828 kB / 0.5096 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3887, allocations: 1 kB / 0.5096 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-06/0.3887, allocations: 0.5625 kB / 0.5096 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.3887, allocations: 4.188 kB / 0.5096 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3887, allocations: 0.75 kB / 0.5096 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.3888, allocations: 113.1 kB / 0.5097 GB, free: 29.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.501e-05/0.3889, allocations: 111.2 kB / 0.5098 GB, free: 29.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.821e-05/0.3889, allocations: 9.656 kB / 0.5098 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.891e-05/0.389, allocations: 4.844 kB / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.042e-05/0.389, allocations: 0 / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.389, allocations: 7.719 kB / 0.5099 GB, free: 29.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003657/0.3894, allocations: 362.4 kB / 0.5102 GB, free: 29.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3894, allocations: 0 / 0.5102 GB, free: 29.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005477/0.39, allocations: 173.1 kB / 0.5104 GB, free: 29.62 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.0005894/0.3906, allocations: 0.841 MB / 0.5112 GB, free: 28.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002749/0.3909, allocations: 159.1 kB / 0.5113 GB, free: 28.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3909, allocations: 2.656 kB / 0.5113 GB, free: 28.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.509e-05/0.3909, allocations: 10.53 kB / 0.5114 GB, free: 28.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.3914, allocations: 96.36 kB / 0.5114 GB, free: 28.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/0.3946, allocations: 3.457 MB / 0.5148 GB, free: 26.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000194/0.3948, allocations: 0.7812 MB / 0.5156 GB, free: 25.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002763/0.3951, allocations: 106 kB / 0.5157 GB, free: 25.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.3952, allocations: 134.4 kB / 0.5158 GB, free: 25.77 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3952, allocations: 0 / 0.5158 GB, free: 25.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.4218, allocations: 10.22 MB / 0.5258 GB, free: 23.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.166/8.588, allocations: 20.7 kB / 0.5258 GB, free: 23.5 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 & /home/hudson/saved_omc/OMSimulator/install/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)