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.001148/0.001148, allocations: 108 kB / 15.61 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.001151/0.001151, allocations: 198.1 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.19/1.19, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1782/0.1782, allocations: 15.33 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 55.91 kB / 370.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08876, allocations: 53.6 MB / 423.9 MB, free: 14.28 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.2666/0.3554, allocations: 22.67 MB / 446.6 MB, free: 40.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004512/0.3599, allocations: 6.296 MB / 452.9 MB, free: 36.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.3601, allocations: 10.09 kB / 452.9 MB, free: 36.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.3604, allocations: 157 kB / 453.1 MB, free: 36.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000417/0.3608, allocations: 248.3 kB / 453.3 MB, free: 36.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.3621, allocations: 0.9613 MB / 454.3 MB, free: 36.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003598/0.3625, allocations: 0.5099 MB / 454.8 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.3627, allocations: 201.7 kB / 455 MB, free: 36.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.3628, allocations: 240.8 kB / 455.2 MB, free: 36.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.3631, allocations: 266.4 kB / 455.5 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.547e-05/0.3632, allocations: 28.22 kB / 455.5 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009027/0.3641, allocations: 0.5502 MB / 456 MB, free: 35.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.322e-05/0.3642, allocations: 101.6 kB / 456.1 MB, free: 35.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.3643, allocations: 200.3 kB / 456.3 MB, free: 35.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009667/0.3653, allocations: 1.054 MB / 457.4 MB, free: 35.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3653, allocations: 0 / 457.4 MB, free: 35.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3653, allocations: 4 kB / 457.4 MB, free: 35.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.3653, allocations: 0.6562 kB / 457.4 MB, free: 35.55 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.0007702/0.3661, allocations: 0.7952 MB / 458.2 MB, free: 34.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.661e-05/0.3661, allocations: 9.156 kB / 458.2 MB, free: 34.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004378/0.3666, allocations: 114.5 kB / 458.3 MB, free: 34.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.3669, allocations: 378.7 kB / 458.7 MB, free: 34.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3669, allocations: 20.97 kB / 458.7 MB, free: 34.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.367, allocations: 29.44 kB / 458.7 MB, free: 34.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.3674, allocations: 442.9 kB / 459.2 MB, free: 34.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3675, allocations: 6.969 kB / 459.2 MB, free: 34.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.3675, allocations: 8.875 kB / 459.2 MB, free: 34.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.3675, allocations: 6.344 kB / 459.2 MB, free: 34.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006054/0.3681, allocations: 0.5797 MB / 459.8 MB, free: 34.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.3696, allocations: 1.759 MB / 461.5 MB, free: 33.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.3699, allocations: 139.6 kB / 461.7 MB, free: 33.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.37, allocations: 89.34 kB / 461.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001436/0.3714, allocations: 1.875 MB / 463.6 MB, free: 31.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.095e-05/0.3714, allocations: 33.56 kB / 463.7 MB, free: 31.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.032e-06/0.3714, allocations: 4 kB / 463.7 MB, free: 31.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003071/0.3718, allocations: 181.3 kB / 463.8 MB, free: 31.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.769e-05/0.3718, allocations: 62.5 kB / 463.9 MB, free: 31.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003063/0.3721, allocations: 432.9 kB / 464.3 MB, free: 31.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.3721, allocations: 25.7 kB / 464.4 MB, free: 31.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.604e-05/0.3722, allocations: 264.1 kB / 464.6 MB, free: 31.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.3722, allocations: 33 kB / 464.6 MB, free: 31.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.861e-05/0.3723, allocations: 86.31 kB / 464.7 MB, free: 31.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.064e-05/0.3724, allocations: 346.8 kB / 465.1 MB, free: 30.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.74e-05/0.3725, allocations: 72.97 kB / 465.1 MB, free: 30.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.3726, allocations: 284.5 kB / 465.4 MB, free: 30.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.3729, allocations: 393.3 kB / 465.8 MB, free: 30.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3729, allocations: 0 / 465.8 MB, free: 30.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004319/0.3734, allocations: 389 kB / 466.2 MB, free: 29.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.3734, allocations: 6.375 kB / 466.2 MB, free: 29.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3734, allocations: 13.22 kB / 466.2 MB, free: 29.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.3734, allocations: 11.84 kB / 466.2 MB, free: 29.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.3736, allocations: 90.53 kB / 466.3 MB, free: 29.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.3737, allocations: 13.34 kB / 466.3 MB, free: 29.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.3739, allocations: 50.98 kB / 466.4 MB, free: 29.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.3739, allocations: 32.31 kB / 466.4 MB, free: 29.89 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 9.694e-05/0.374, allocations: 158.7 kB / 466.5 MB, free: 29.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.915e-05/0.3741, allocations: 34.25 kB / 466.6 MB, free: 29.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000351/0.3744, allocations: 241.3 kB / 466.8 MB, free: 29.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3744, allocations: 3.422 kB / 466.8 MB, free: 29.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3744, allocations: 3.938 kB / 466.8 MB, free: 29.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.3744, allocations: 4.969 kB / 466.8 MB, free: 29.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003584/0.3748, allocations: 0.531 MB / 467.4 MB, free: 29.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3748, allocations: 0 / 467.4 MB, free: 29.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.076e-05/0.3748, allocations: 1.25 kB / 467.4 MB, free: 29.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3748, allocations: 8.344 kB / 467.4 MB, free: 29.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.3749, allocations: 4 kB / 467.4 MB, free: 29.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3749, allocations: 4.875 kB / 467.4 MB, free: 29.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3749, allocations: 0 / 467.4 MB, free: 29.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.178e-05/0.375, allocations: 110.1 kB / 467.5 MB, free: 29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.375, allocations: 117.3 kB / 467.6 MB, free: 28.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/0.3751, allocations: 5.031 kB / 467.6 MB, free: 28.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-05/0.3752, allocations: 1 kB / 467.6 MB, free: 28.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.537e-05/0.3752, allocations: 4.5 kB / 467.6 MB, free: 28.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.3752, allocations: 0 / 467.6 MB, free: 28.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003005/0.3755, allocations: 359.1 kB / 468 MB, free: 28.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3755, allocations: 1.094 kB / 468 MB, free: 28.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004475/0.376, allocations: 177.5 kB / 468.1 MB, free: 28.66 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.0003523/0.3763, allocations: 295.9 kB / 468.4 MB, free: 28.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002457/0.3766, allocations: 168.9 kB / 468.6 MB, free: 28.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3766, allocations: 0 / 468.6 MB, free: 28.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.391e-05/0.3766, allocations: 9.281 kB / 468.6 MB, free: 28.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.377, allocations: 97.16 kB / 468.7 MB, free: 28.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006191/0.3777, allocations: 0.5408 MB / 469.2 MB, free: 28.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.3778, allocations: 0.7868 MB / 470 MB, free: 27.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002781/0.3781, allocations: 100.9 kB / 470.1 MB, free: 27.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.749e-05/0.3782, allocations: 48.69 kB / 470.2 MB, free: 27.32 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3782, allocations: 0 / 470.2 MB, free: 27.32 MB / 366.1 MB Notification: Performance of Templates: time 0.008907/0.3871, allocations: 6.326 MB / 476.5 MB, free: 26.76 MB / 366.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)