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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.102/0.102, allocations: 15.29 MB / 31.08 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 198 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 264 MB, free: 4.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 110.2 kB / 318.4 MB, free: 3.461 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009504/0.0009504, allocations: 52.5 kB / 382.7 MB, free: 48.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08314/0.08411, allocations: 53.62 MB / 436.3 MB, free: 1.062 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.0307/0.1149, allocations: 21.44 MB / 457.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008919/0.1238, allocations: 7.902 MB / 465.7 MB, free: 3.797 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007009/0.1245, allocations: 15.88 kB / 465.7 MB, free: 3.781 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006692/0.1252, allocations: 170.9 kB / 465.9 MB, free: 3.613 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001635/0.1269, allocations: 0.5588 MB / 466.4 MB, free: 3.051 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002305/0.1292, allocations: 0.9055 MB / 467.3 MB, free: 2.141 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.1304, allocations: 0.9238 MB / 468.2 MB, free: 1.211 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005985/0.131, allocations: 446.9 kB / 468.7 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005668/0.1316, allocations: 426.7 kB / 469.1 MB, free: 360 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007192/0.1324, allocations: 490.3 kB / 469.6 MB, free: 15.87 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.1325, allocations: 52 kB / 469.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.1346, allocations: 0.8032 MB / 470.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.1348, allocations: 175.3 kB / 470.6 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004625/0.1353, allocations: 394.2 kB / 471 MB, free: 14.46 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002671/0.138, allocations: 1.623 MB / 472.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.138, allocations: 4 kB / 472.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.138, allocations: 0 / 472.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.085e-05/0.138, allocations: 0 / 472.6 MB, free: 12.82 MB / 346.7 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.002136/0.1402, allocations: 1.166 MB / 473.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1402, allocations: 8.875 kB / 473.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005912/0.1408, allocations: 148 kB / 473.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.1415, allocations: 463.3 kB / 474.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.077e-05/0.1416, allocations: 80.27 kB / 474.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.1417, allocations: 76.27 kB / 474.5 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.1428, allocations: 0.7777 MB / 475.3 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1428, allocations: 4 kB / 475.3 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.907e-05/0.1429, allocations: 24 kB / 475.3 MB, free: 9.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.1429, allocations: 16 kB / 475.4 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.1442, allocations: 0.8835 MB / 476.2 MB, free: 9.082 MB / 346.7 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.003555/0.1478, allocations: 2.563 MB / 478.8 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.1491, allocations: 1.024 MB / 479.8 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/0.1496, allocations: 310.3 kB / 480.1 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003369/0.1529, allocations: 2.832 MB / 483 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.153, allocations: 42.5 kB / 483 MB, free: 1.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 1.914e-06/0.153, allocations: 0 / 483 MB, free: 1.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.002237/0.1552, allocations: 1.225 MB / 484.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.1553, allocations: 59.39 kB / 484.3 MB, free: 440 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.1557, allocations: 421.7 kB / 484.7 MB, free: 8 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.134e-05/0.1558, allocations: 33.7 kB / 484.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/0.156, allocations: 363.1 kB / 485.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.1561, allocations: 169.6 kB / 485.2 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.1563, allocations: 130.5 kB / 485.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1564, allocations: 362.8 kB / 485.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.1567, allocations: 149.9 kB / 485.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.1571, allocations: 388.3 kB / 486.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007145/0.1578, allocations: 0.5747 MB / 486.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.1578, allocations: 4 kB / 486.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.000905/0.1587, allocations: 0.6053 MB / 487.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1587, allocations: 12 kB / 487.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.1588, allocations: 11.94 kB / 487.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.1588, allocations: 15.94 kB / 487.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006563/0.1595, allocations: 195.8 kB / 487.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.103e-05/0.1595, allocations: 19.92 kB / 487.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.1598, allocations: 43.89 kB / 487.7 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.998e-05/0.1599, allocations: 32 kB / 487.8 MB, free: 12.69 MB / 362.7 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.0002183/0.1601, allocations: 206.1 kB / 488 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.478e-05/0.1602, allocations: 47.44 kB / 488 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008949/0.1611, allocations: 0.5051 MB / 488.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1611, allocations: 15.94 kB / 488.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1611, allocations: 0 / 488.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.1611, allocations: 3.984 kB / 488.5 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007418/0.1619, allocations: 0.6199 MB / 489.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1619, allocations: 4 kB / 489.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005458/0.1624, allocations: 143.9 kB / 489.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.217e-06/0.1625, allocations: 4 kB / 489.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.1625, allocations: 23.92 kB / 489.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.1625, allocations: 4 kB / 489.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1625, allocations: 0 / 489.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004685/0.1672, allocations: 3.117 MB / 492.4 MB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.1674, allocations: 172.3 kB / 492.6 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.256e-05/0.1675, allocations: 8 kB / 492.6 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.1677, allocations: 16 kB / 492.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-05/0.1678, allocations: 40.39 kB / 492.7 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.1678, allocations: 19.98 kB / 492.7 MB, free: 7.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002661/0.1681, allocations: 279.1 kB / 493 MB, free: 7.227 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1681, allocations: 0 / 493 MB, free: 7.227 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001097/0.1692, allocations: 371.8 kB / 493.3 MB, free: 6.863 MB / 362.7 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.001013/0.1702, allocations: 426.5 kB / 493.8 MB, free: 6.438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008036/0.171, allocations: 434.3 kB / 494.2 MB, free: 6.012 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1711, allocations: 3.938 kB / 494.2 MB, free: 6.008 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.1714, allocations: 206.4 kB / 494.4 MB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000743/0.1721, allocations: 124.5 kB / 494.5 MB, free: 5.691 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.1746, allocations: 1.786 MB / 496.3 MB, free: 3.844 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/0.1751, allocations: 0.8983 MB / 497.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005156/0.1756, allocations: 128.6 kB / 497.3 MB, free: 2.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.1758, allocations: 79.39 kB / 497.4 MB, free: 2.715 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.1758, allocations: 0 / 497.4 MB, free: 2.715 MB / 362.7 MB Notification: Performance of Templates: time 0.01809/0.1939, allocations: 10.46 MB / 0.496 GB, free: 8.316 MB / 378.7 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)