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.00147/0.00147, allocations: 106 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.001629/0.001629, allocations: 190.5 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.404/1.404, 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.08814/0.08814, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 68.09 kB / 371.7 MB, free: 50.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 53.62 MB / 425.4 MB, free: 13.3 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.1307, allocations: 23.59 MB / 448.9 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009727/0.1404, allocations: 7.966 MB / 456.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006539/0.1411, allocations: 11.94 kB / 456.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006242/0.1417, allocations: 182.6 kB / 457.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001714/0.1435, allocations: 0.6864 MB / 457.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002411/0.1459, allocations: 1.014 MB / 458.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.1471, allocations: 0.9433 MB / 459.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006757/0.1478, allocations: 0.5095 MB / 460.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004877/0.1483, allocations: 462.7 kB / 460.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006239/0.1489, allocations: 498.3 kB / 461.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.149, allocations: 80 kB / 461.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.1509, allocations: 0.862 MB / 462.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.1511, allocations: 195.4 kB / 462.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003724/0.1515, allocations: 418.1 kB / 462.7 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002332/0.1538, allocations: 1.752 MB / 464.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1539, allocations: 7.922 kB / 464.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1539, allocations: 0 / 464.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1539, allocations: 0 / 464.5 MB, free: 6.215 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.001804/0.1557, allocations: 1.166 MB / 465.7 MB, free: 5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1557, allocations: 15.97 kB / 465.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006397/0.1564, allocations: 147.9 kB / 465.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007642/0.1572, allocations: 487.3 kB / 466.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.133e-05/0.1573, allocations: 76.27 kB / 466.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.1574, allocations: 68.38 kB / 466.4 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.1585, allocations: 0.7777 MB / 467.2 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1586, allocations: 0 / 467.2 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.18e-05/0.1586, allocations: 28 kB / 467.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.1587, allocations: 20 kB / 467.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.16, allocations: 0.8796 MB / 468.1 MB, free: 2.453 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.00365/0.1637, allocations: 2.571 MB / 470.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.1651, allocations: 1.009 MB / 471.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004275/0.1656, allocations: 310.4 kB / 472 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003509/0.1691, allocations: 2.821 MB / 474.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.1691, allocations: 54.44 kB / 474.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.793e-06/0.1691, allocations: 0 / 474.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.00227/0.1714, allocations: 1.224 MB / 476.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.1715, allocations: 55.41 kB / 476.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.1719, allocations: 421.7 kB / 476.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/0.1719, allocations: 33.7 kB / 476.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002188/0.1721, allocations: 371.1 kB / 477 MB, free: 8.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.1723, allocations: 157.7 kB / 477.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.1724, allocations: 126.6 kB / 477.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1726, allocations: 358.8 kB / 477.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.1728, allocations: 149.9 kB / 477.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.1733, allocations: 392.3 kB / 478.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007167/0.174, allocations: 0.5786 MB / 478.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.174, allocations: 0 / 478.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009249/0.1749, allocations: 0.6241 MB / 479.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.175, allocations: 8 kB / 479.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.175, allocations: 11.94 kB / 479.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.175, allocations: 12 kB / 479.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007092/0.1757, allocations: 204.3 kB / 479.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.1758, allocations: 15.94 kB / 479.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002914/0.176, allocations: 16 kB / 479.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.506e-05/0.1761, allocations: 39.98 kB / 479.6 MB, free: 6.094 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.0002189/0.1763, allocations: 205.5 kB / 479.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.1764, allocations: 47.34 kB / 479.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009392/0.1774, allocations: 0.5013 MB / 480.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.1774, allocations: 8 kB / 480.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1774, allocations: 0 / 480.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1774, allocations: 0 / 480.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007504/0.1782, allocations: 0.6238 MB / 481 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.1782, allocations: 4 kB / 481 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005683/0.1788, allocations: 147.9 kB / 481.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.1788, allocations: 4 kB / 481.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.1788, allocations: 23.88 kB / 481.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1788, allocations: 4 kB / 481.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1788, allocations: 0 / 481.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.1798, allocations: 0.7225 MB / 481.9 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.1801, allocations: 160.4 kB / 482.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.041e-05/0.1802, allocations: 15.94 kB / 482.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.1804, allocations: 8 kB / 482.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.597e-05/0.1805, allocations: 40.39 kB / 482.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.1805, allocations: 23.98 kB / 482.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002697/0.1808, allocations: 279.1 kB / 482.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1808, allocations: 0 / 482.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009221/0.1817, allocations: 335.7 kB / 482.8 MB, free: 2.836 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.0007494/0.1825, allocations: 418.7 kB / 483.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000721/0.1832, allocations: 442.5 kB / 483.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1832, allocations: 8.188 kB / 483.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.1835, allocations: 206.4 kB / 483.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.1842, allocations: 135.2 kB / 484 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.1861, allocations: 1.172 MB / 485.1 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.1865, allocations: 0.8938 MB / 486 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003658/0.1869, allocations: 116.6 kB / 486.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.1871, allocations: 71.41 kB / 486.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1871, allocations: 0 / 486.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of Templates: time 0.01588/0.203, allocations: 9.979 MB / 496.2 MB, free: 5.398 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 gbode -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)