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.001344/0.001344, allocations: 103.3 kB / 16.27 MB, free: 5.98 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.00131/0.00131, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.42/1.42, allocations: 222.9 MB / 240.9 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.09372/0.09372, allocations: 15.3 MB / 306.4 MB, free: 15.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 65.16 kB / 371 MB, free: 51.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08419/0.08613, allocations: 53.62 MB / 424.6 MB, free: 14.19 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.03492/0.1211, allocations: 24.38 MB / 449 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.1365, allocations: 7.958 MB / 456.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008134/0.1374, allocations: 11.94 kB / 456.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009044/0.1383, allocations: 194.5 kB / 457.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003119/0.1414, allocations: 0.6825 MB / 457.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004251/0.1457, allocations: 1.029 MB / 458.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001978/0.1477, allocations: 0.9277 MB / 459.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000983/0.1487, allocations: 0.5057 MB / 460.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007437/0.1495, allocations: 454.7 kB / 460.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009887/0.1505, allocations: 498.3 kB / 461.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001966/0.1507, allocations: 80 kB / 461.3 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004096/0.1548, allocations: 0.8659 MB / 462.2 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003417/0.1552, allocations: 195.4 kB / 462.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007113/0.1559, allocations: 422.1 kB / 462.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004784/0.1607, allocations: 1.744 MB / 464.5 MB, free: 6.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1608, allocations: 3.938 kB / 464.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1608, allocations: 0 / 464.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.57e-05/0.1608, allocations: 0 / 464.5 MB, free: 6.328 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.003022/0.1638, allocations: 1.166 MB / 465.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1639, allocations: 8.031 kB / 465.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.165, allocations: 151.9 kB / 465.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.166, allocations: 479.3 kB / 466.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.1662, allocations: 76.27 kB / 466.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001824/0.1664, allocations: 68.38 kB / 466.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.1683, allocations: 0.7777 MB / 467.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.1684, allocations: 4 kB / 467.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.1685, allocations: 28 kB / 467.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.199e-05/0.1685, allocations: 16 kB / 467.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002185/0.1707, allocations: 0.8757 MB / 468.1 MB, free: 2.582 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.004571/0.1754, allocations: 2.59 MB / 470.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.1771, allocations: 1.013 MB / 471.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.1776, allocations: 314.4 kB / 472 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003979/0.1816, allocations: 2.825 MB / 474.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.1817, allocations: 42.56 kB / 474.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.013e-06/0.1817, allocations: 3.938 kB / 474.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002605/0.1843, allocations: 1.224 MB / 476.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.1844, allocations: 55.41 kB / 476.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005201/0.1849, allocations: 417.8 kB / 476.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.1849, allocations: 37.64 kB / 476.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/0.1852, allocations: 371 kB / 477 MB, free: 9.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.1854, allocations: 165.6 kB / 477.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/0.1856, allocations: 122.6 kB / 477.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1858, allocations: 358.8 kB / 477.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/0.1861, allocations: 149.9 kB / 477.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.1866, allocations: 388.3 kB / 478.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008685/0.1874, allocations: 0.5825 MB / 478.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1875, allocations: 4 kB / 478.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001063/0.1885, allocations: 0.6085 MB / 479.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.1886, allocations: 8 kB / 479.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.1886, allocations: 15.92 kB / 479.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.001e-05/0.1886, allocations: 12 kB / 479.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007473/0.1894, allocations: 208.3 kB / 479.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.517e-05/0.1894, allocations: 15.94 kB / 479.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003209/0.1897, allocations: 19.94 kB / 479.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.125e-05/0.1898, allocations: 39.98 kB / 479.7 MB, free: 6.195 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.0002803/0.1901, allocations: 201.6 kB / 479.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.285e-05/0.1902, allocations: 47.34 kB / 479.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.1913, allocations: 0.513 MB / 480.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.1913, allocations: 4 kB / 480.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1913, allocations: 0 / 480.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1913, allocations: 0 / 480.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009114/0.1922, allocations: 0.6199 MB / 481 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.1923, allocations: 4 kB / 481.1 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006005/0.1929, allocations: 147.9 kB / 481.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.804e-06/0.1929, allocations: 4 kB / 481.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.1929, allocations: 27.86 kB / 481.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.1929, allocations: 4 kB / 481.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1929, allocations: 0 / 481.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.1941, allocations: 0.7187 MB / 481.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.1943, allocations: 160.4 kB / 482.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.417e-05/0.1944, allocations: 15.94 kB / 482.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.1946, allocations: 15.94 kB / 482.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.949e-05/0.1947, allocations: 36.39 kB / 482.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.152e-05/0.1948, allocations: 23.98 kB / 482.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000319/0.1951, allocations: 279.1 kB / 482.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1951, allocations: 0 / 482.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009662/0.1961, allocations: 323.8 kB / 482.8 MB, free: 2.945 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.0007715/0.1968, allocations: 430.6 kB / 483.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009578/0.1978, allocations: 470.6 kB / 483.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1978, allocations: 4 kB / 483.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.1982, allocations: 202.4 kB / 483.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007519/0.1989, allocations: 135.8 kB / 484 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.2011, allocations: 1.216 MB / 485.2 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.2017, allocations: 0.8977 MB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.2019, allocations: 91.39 kB / 486.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2019, allocations: 3.938 kB / 486.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of Templates: time 0.01462/0.2165, allocations: 9.044 MB / 495.3 MB, free: 6.43 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 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)