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: translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 108 kB / 16.41 MB, free: 6.027 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.001329/0.001329, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08379/0.08379, allocations: 15.3 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.89 kB / 425.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1024, allocations: 53.61 MB / 479.5 MB, free: 5.816 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.03457/0.1371, allocations: 22.68 MB / 0.4904 GB, free: 15.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007736/0.1448, allocations: 6.288 MB / 0.4965 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004339/0.1453, allocations: 15.94 kB / 0.4965 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006151/0.1459, allocations: 158.8 kB / 0.4967 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009071/0.1469, allocations: 246.1 kB / 0.4969 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002789/0.1497, allocations: 0.9587 MB / 0.4979 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008835/0.1506, allocations: 0.506 MB / 0.4983 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.151, allocations: 200.8 kB / 0.4985 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003596/0.1514, allocations: 247.3 kB / 0.4988 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004897/0.1519, allocations: 259.1 kB / 0.499 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.152, allocations: 28 kB / 0.499 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001694/0.1537, allocations: 0.5577 MB / 0.4996 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.1538, allocations: 91.69 kB / 0.4997 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00026/0.1541, allocations: 210.9 kB / 0.4999 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002324/0.1564, allocations: 1.063 MB / 0.5009 GB, free: 4.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1565, allocations: 0 / 0.5009 GB, free: 4.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1565, allocations: 0 / 0.5009 GB, free: 4.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.77e-05/0.1565, allocations: 0 / 0.5009 GB, free: 4.371 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.001385/0.1579, allocations: 0.7945 MB / 0.5017 GB, free: 3.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1579, allocations: 16.03 kB / 0.5017 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006111/0.1586, allocations: 116.1 kB / 0.5018 GB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005684/0.1591, allocations: 387.8 kB / 0.5022 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1592, allocations: 20.94 kB / 0.5022 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.717e-05/0.1592, allocations: 32.12 kB / 0.5022 GB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006961/0.1599, allocations: 446 kB / 0.5027 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.16, allocations: 7.984 kB / 0.5027 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.16, allocations: 12 kB / 0.5027 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.16, allocations: 8 kB / 0.5027 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008025/0.1608, allocations: 0.5793 MB / 0.5033 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.1631, allocations: 1.756 MB / 0.505 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2278/0.3909, allocations: 137.4 kB / 0.5051 GB, free: 33.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.3911, allocations: 82.19 kB / 0.5052 GB, free: 33.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002223/0.3934, allocations: 1.868 MB / 0.507 GB, free: 32.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.3934, allocations: 32.42 kB / 0.507 GB, free: 32.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 2.264e-06/0.3934, allocations: 0 / 0.507 GB, free: 32.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004259/0.3938, allocations: 191.7 kB / 0.5072 GB, free: 32.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.3939, allocations: 52.53 kB / 0.5073 GB, free: 31.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005282/0.3944, allocations: 435.3 kB / 0.5077 GB, free: 31.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.3944, allocations: 25.7 kB / 0.5077 GB, free: 31.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.3946, allocations: 263.2 kB / 0.508 GB, free: 31.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.675e-05/0.3946, allocations: 38.48 kB / 0.508 GB, free: 31.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.3948, allocations: 80.78 kB / 0.5081 GB, free: 31.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.018e-05/0.3949, allocations: 348.3 kB / 0.5084 GB, free: 31.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.395, allocations: 70.8 kB / 0.5085 GB, free: 31.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.3952, allocations: 284.4 kB / 0.5087 GB, free: 31.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/0.3956, allocations: 394.4 kB / 0.5091 GB, free: 30.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3956, allocations: 2 kB / 0.5091 GB, free: 30.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006151/0.3962, allocations: 387.1 kB / 0.5095 GB, free: 30.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.3963, allocations: 9.719 kB / 0.5095 GB, free: 30.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.3963, allocations: 7.562 kB / 0.5095 GB, free: 30.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.912e-05/0.3963, allocations: 10.69 kB / 0.5095 GB, free: 30.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/0.3966, allocations: 90.39 kB / 0.5096 GB, free: 30.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.3966, allocations: 18.64 kB / 0.5096 GB, free: 30.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.3969, allocations: 50.97 kB / 0.5097 GB, free: 30.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.3969, allocations: 26.36 kB / 0.5097 GB, free: 30.64 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.0001424/0.3971, allocations: 172 kB / 0.5099 GB, free: 30.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.3972, allocations: 39.7 kB / 0.5099 GB, free: 30.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004143/0.3976, allocations: 230.7 kB / 0.5101 GB, free: 30.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.3976, allocations: 1.125 kB / 0.5101 GB, free: 30.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3976, allocations: 0 / 0.5101 GB, free: 30.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3976, allocations: 3.938 kB / 0.5101 GB, free: 30.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004834/0.3981, allocations: 0.536 MB / 0.5106 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3981, allocations: 0.8906 kB / 0.5106 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.19e-05/0.3981, allocations: 2.562 kB / 0.5106 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.3982, allocations: 0.5625 kB / 0.5107 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.3982, allocations: 5.312 kB / 0.5107 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3982, allocations: 3.5 kB / 0.5107 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3982, allocations: 0.6562 kB / 0.5107 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001107/0.3983, allocations: 106.9 kB / 0.5108 GB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.038e-05/0.3984, allocations: 126.7 kB / 0.5109 GB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.513e-05/0.3984, allocations: 13.56 kB / 0.5109 GB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.421e-05/0.3985, allocations: 1.609 kB / 0.5109 GB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.3986, allocations: 0.75 kB / 0.5109 GB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3986, allocations: 1.031 kB / 0.5109 GB, free: 29.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003783/0.3989, allocations: 361.4 kB / 0.5112 GB, free: 29.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3989, allocations: 2.531 kB / 0.5112 GB, free: 29.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005858/0.3995, allocations: 179.3 kB / 0.5114 GB, free: 29.55 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.0004945/0.4, allocations: 295.6 kB / 0.5117 GB, free: 29.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.4004, allocations: 157.7 kB / 0.5118 GB, free: 29.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4004, allocations: 3.75 kB / 0.5119 GB, free: 29.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.641e-05/0.4004, allocations: 10.84 kB / 0.5119 GB, free: 29.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.4009, allocations: 92.86 kB / 0.512 GB, free: 29.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007875/0.4017, allocations: 0.5602 MB / 0.5125 GB, free: 29.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.4019, allocations: 0.7811 MB / 0.5133 GB, free: 28.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.402, allocations: 72.2 kB / 0.5133 GB, free: 28.32 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.402, allocations: 0 / 0.5133 GB, free: 28.32 MB / 382.1 MB Notification: Performance of Templates: time 0.01266/0.4147, allocations: 6.117 MB / 0.5193 GB, free: 28.06 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.makefile (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 & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_Get_DfG.pipe 2>&1)