Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction.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.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001134/0.001134, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09046/0.09046, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.001251, allocations: 63.72 kB / 371.7 MB, free: 50.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08072/0.08199, allocations: 53.6 MB / 425.3 MB, free: 13.33 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.SimpleReaction): time 0.02908/0.1111, allocations: 23.6 MB / 448.9 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01095/0.1221, allocations: 7.958 MB / 456.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005935/0.1227, allocations: 7.938 kB / 456.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005796/0.1233, allocations: 198.5 kB / 457.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001798/0.1251, allocations: 0.6786 MB / 457.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002506/0.1277, allocations: 1.025 MB / 458.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.1288, allocations: 0.9316 MB / 459.7 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006094/0.1294, allocations: 0.5173 MB / 460.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004415/0.1299, allocations: 454.8 kB / 460.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005791/0.1305, allocations: 0.4905 MB / 461.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.717e-05/0.1306, allocations: 80 kB / 461.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00218/0.1327, allocations: 0.862 MB / 462.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.1329, allocations: 199.4 kB / 462.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003684/0.1333, allocations: 418.1 kB / 462.7 MB, free: 8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002545/0.1359, allocations: 1.756 MB / 464.5 MB, free: 6.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1359, allocations: 3.938 kB / 464.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1359, allocations: 0 / 464.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.1359, allocations: 0 / 464.5 MB, free: 6.234 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001782/0.1377, allocations: 1.166 MB / 465.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.1377, allocations: 8.031 kB / 465.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005876/0.1383, allocations: 147.9 kB / 465.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000697/0.139, allocations: 483.3 kB / 466.3 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.199e-05/0.1391, allocations: 80.27 kB / 466.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.1393, allocations: 64.38 kB / 466.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.1404, allocations: 0.7816 MB / 467.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.1404, allocations: 0 / 467.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.586e-05/0.1405, allocations: 24 kB / 467.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.1405, allocations: 16 kB / 467.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.1419, allocations: 0.8874 MB / 468.1 MB, free: 2.48 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004049/0.1459, allocations: 2.575 MB / 470.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.1474, allocations: 1.009 MB / 471.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/0.1479, allocations: 310.4 kB / 472 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00372/0.1516, allocations: 2.832 MB / 474.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.1517, allocations: 30.56 kB / 474.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 3.888e-06/0.1517, allocations: 8 kB / 474.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002526/0.1542, allocations: 1.216 MB / 476.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.1543, allocations: 59.41 kB / 476.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004619/0.1548, allocations: 421.7 kB / 476.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.1548, allocations: 33.7 kB / 476.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002169/0.155, allocations: 367.1 kB / 477 MB, free: 9.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1552, allocations: 169.6 kB / 477.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.1553, allocations: 134.5 kB / 477.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1555, allocations: 358.8 kB / 477.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.1557, allocations: 145.9 kB / 477.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.1561, allocations: 392.3 kB / 478.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007138/0.1568, allocations: 0.5709 MB / 478.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.1569, allocations: 4 kB / 478.7 MB, free: 7.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009694/0.1578, allocations: 0.6165 MB / 479.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1579, allocations: 8 kB / 479.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.1579, allocations: 11.94 kB / 479.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.872e-05/0.1579, allocations: 12 kB / 479.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007132/0.1586, allocations: 208.1 kB / 479.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.192e-05/0.1587, allocations: 19.92 kB / 479.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.159, allocations: 24 kB / 479.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.508e-05/0.159, allocations: 32 kB / 479.6 MB, free: 6.117 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 (83): * Single equations (assignments): 83 * 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.0002576/0.1593, allocations: 205.6 kB / 479.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.983e-05/0.1594, allocations: 51.34 kB / 479.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009117/0.1603, allocations: 0.4935 MB / 480.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1603, allocations: 4 kB / 480.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.1604, allocations: 8 kB / 480.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.1604, allocations: 3.984 kB / 480.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008415/0.1612, allocations: 0.6199 MB / 481 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.1612, allocations: 0 / 481 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000561/0.1618, allocations: 151.9 kB / 481.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.1618, allocations: 3.938 kB / 481.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.1618, allocations: 15.94 kB / 481.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.1619, allocations: 4 kB / 481.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.1619, allocations: 7.984 kB / 481.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009983/0.1629, allocations: 0.7187 MB / 481.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002217/0.1631, allocations: 164.4 kB / 482.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/0.1632, allocations: 15.94 kB / 482.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.1634, allocations: 12 kB / 482.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.1635, allocations: 32.39 kB / 482.1 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.222e-05/0.1635, allocations: 20 kB / 482.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002756/0.1638, allocations: 283.1 kB / 482.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1638, allocations: 0 / 482.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008937/0.1647, allocations: 335.7 kB / 482.8 MB, free: 2.863 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (solution.temperature,A.logn,B.logn) * 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 (53): * Single equations (assignments): 53 * 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.0006887/0.1654, allocations: 426.6 kB / 483.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007141/0.1661, allocations: 442 kB / 483.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1661, allocations: 0.6875 kB / 483.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002957/0.1664, allocations: 210.3 kB / 483.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006725/0.1671, allocations: 135.5 kB / 484 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.1689, allocations: 1.164 MB / 485.1 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.1694, allocations: 0.8899 MB / 486 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003439/0.1697, allocations: 124.6 kB / 486.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.1699, allocations: 75.41 kB / 486.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1699, allocations: 0 / 486.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of Templates: time 0.01597/0.1859, allocations: 9.98 MB / 496.2 MB, free: 5.418 MB / 366.1 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & ./Chemical_Chemical.Examples.SimpleReaction -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)