Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") translateModel(Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 113.3 kB / 16.37 MB, free: 6.012 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.001112/0.001112, allocations: 190.4 kB / 17.31 MB, free: 5.613 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09646/0.09646, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 61.02 kB / 371.7 MB, free: 50.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 53.61 MB / 425.4 MB, free: 13.31 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.SimpleReaction2): time 0.03116/0.1328, allocations: 24.4 MB / 449.8 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01294/0.1458, allocations: 11.62 MB / 461.4 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006652/0.1465, allocations: 11.94 kB / 461.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006573/0.1471, allocations: 262.1 kB / 461.6 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002289/0.1494, allocations: 0.9773 MB / 462.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003964/0.1534, allocations: 1.511 MB / 464.1 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001543/0.155, allocations: 1.248 MB / 465.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007954/0.1558, allocations: 0.7012 MB / 466.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006368/0.1564, allocations: 0.6039 MB / 466.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008739/0.1573, allocations: 0.6696 MB / 467.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.1575, allocations: 108 kB / 467.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004206/0.1617, allocations: 1.283 MB / 468.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002753/0.162, allocations: 259.2 kB / 469 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006172/0.1626, allocations: 0.5483 MB / 469.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005361/0.168, allocations: 2.507 MB / 472.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.168, allocations: 0 / 472.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.168, allocations: 0 / 472.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.652e-05/0.1681, allocations: 0 / 472.1 MB, free: 14.63 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003282/0.1713, allocations: 1.489 MB / 473.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1714, allocations: 8.031 kB / 473.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.1724, allocations: 211.4 kB / 473.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.1735, allocations: 0.5754 MB / 474.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.1737, allocations: 92.27 kB / 474.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.1739, allocations: 96.38 kB / 474.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.1757, allocations: 1.053 MB / 475.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.1757, allocations: 0 / 475.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.224e-05/0.1758, allocations: 36 kB / 475.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.1758, allocations: 20 kB / 475.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001896/0.1777, allocations: 1.273 MB / 476.9 MB, free: 9.672 MB / 350.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.005269/0.183, allocations: 3.458 MB / 480.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002259/0.1853, allocations: 1.534 MB / 481.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006495/0.1859, allocations: 435.7 kB / 482.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005546/0.1915, allocations: 4.037 MB / 486.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.1916, allocations: 39.12 kB / 486.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.755e-06/0.1916, allocations: 0 / 486.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.003396/0.195, allocations: 1.665 MB / 488.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.195, allocations: 55.97 kB / 488.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006373/0.1957, allocations: 0.5184 MB / 488.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.035e-05/0.1957, allocations: 37.7 kB / 488.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.196, allocations: 458.2 kB / 489.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.1962, allocations: 220.8 kB / 489.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.1964, allocations: 174.5 kB / 489.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1966, allocations: 378.8 kB / 489.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.197, allocations: 209.9 kB / 490.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.1976, allocations: 0.5295 MB / 490.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.1987, allocations: 0.813 MB / 491.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1987, allocations: 7.938 kB / 491.4 MB, free: 10 MB / 366.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001365/0.2001, allocations: 0.8502 MB / 492.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.2001, allocations: 8 kB / 492.3 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.2001, allocations: 12 kB / 492.3 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.826e-05/0.2002, allocations: 23.97 kB / 492.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009364/0.2011, allocations: 263.6 kB / 492.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.731e-05/0.2012, allocations: 23.92 kB / 492.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004483/0.2016, allocations: 28 kB / 492.6 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.959e-05/0.2017, allocations: 51.98 kB / 492.7 MB, free: 8.742 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.0003091/0.202, allocations: 237.5 kB / 492.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.2021, allocations: 71.14 kB / 493 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.2034, allocations: 0.6891 MB / 493.7 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.2035, allocations: 7.984 kB / 493.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2035, allocations: 4 kB / 493.7 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.2035, allocations: 7.984 kB / 493.7 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.2048, allocations: 0.7682 MB / 494.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.2048, allocations: 4 kB / 494.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007476/0.2055, allocations: 175.9 kB / 494.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.2055, allocations: 4 kB / 494.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.665e-05/0.2056, allocations: 27.92 kB / 494.7 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.2056, allocations: 4 kB / 494.7 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.2056, allocations: 0 / 494.7 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.2072, allocations: 0.9519 MB / 495.6 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003186/0.2075, allocations: 188.2 kB / 495.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.2077, allocations: 15.94 kB / 495.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.208, allocations: 16 kB / 495.8 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.2081, allocations: 48.5 kB / 495.9 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.379e-05/0.2081, allocations: 31.92 kB / 495.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003649/0.2085, allocations: 338.9 kB / 496.2 MB, free: 5.039 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2085, allocations: 4 kB / 496.2 MB, free: 5.035 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00134/0.2099, allocations: 479.6 kB / 496.7 MB, free: 4.566 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (71): * Single equations (assignments): 71 * 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.001416/0.2113, allocations: 0.5843 MB / 497.3 MB, free: 3.973 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.2124, allocations: 0.6073 MB / 497.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2124, allocations: 0 / 497.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004146/0.2128, allocations: 287.7 kB / 498.2 MB, free: 3.082 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007842/0.2136, allocations: 164.3 kB / 498.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.216, allocations: 1.504 MB / 499.8 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006018/0.2166, allocations: 0.9579 MB / 0.4891 GB, free: 408 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005198/0.2172, allocations: 169.5 kB / 0.4892 GB, free: 236 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.2174, allocations: 95.39 kB / 0.4893 GB, free: 140 kB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2174, allocations: 0 / 0.4893 GB, free: 140 kB / 366.1 MB Notification: Performance of Templates: time 0.02346/0.2408, allocations: 13.98 MB / 0.503 GB, free: 2.219 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & ./Chemical_Chemical.Examples.SimpleReaction2 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)