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.001501/0.001501, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001889/0.001889, allocations: 198.5 kB / 16.14 MB, free: 6.703 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.43/1.43, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2228/0.2228, allocations: 15.32 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.89 kB / 369.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1236, allocations: 53.6 MB / 423.2 MB, free: 14.77 MB / 366.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.389/0.5126, allocations: 23.28 MB / 446.5 MB, free: 39.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008445/0.5211, allocations: 7.959 MB / 454.5 MB, free: 36.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000793/0.5219, allocations: 17 kB / 454.5 MB, free: 36.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006492/0.5226, allocations: 166.9 kB / 454.7 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001974/0.5246, allocations: 0.5994 MB / 455.3 MB, free: 35.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003631/0.5282, allocations: 0.9008 MB / 456.2 MB, free: 35.44 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.5296, allocations: 0.9011 MB / 457.1 MB, free: 35.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000557/0.5301, allocations: 455.6 kB / 457.5 MB, free: 35.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.5306, allocations: 431.5 kB / 457.9 MB, free: 35.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005276/0.5311, allocations: 486.2 kB / 458.4 MB, free: 34.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.898e-05/0.5312, allocations: 52.19 kB / 458.5 MB, free: 34.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002776/0.534, allocations: 0.8379 MB / 459.3 MB, free: 34.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.5342, allocations: 171.2 kB / 459.5 MB, free: 34.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004694/0.5347, allocations: 398 kB / 459.9 MB, free: 34.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003472/0.5382, allocations: 1.644 MB / 461.5 MB, free: 34.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.5382, allocations: 0 / 461.5 MB, free: 34.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.5382, allocations: 3.938 kB / 461.5 MB, free: 34.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.5382, allocations: 4 kB / 461.5 MB, free: 34.11 MB / 366.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.001757/0.54, allocations: 1.157 MB / 462.7 MB, free: 33.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.54, allocations: 9.625 kB / 462.7 MB, free: 33.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000639/0.5407, allocations: 148 kB / 462.8 MB, free: 33.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005524/0.5413, allocations: 474.3 kB / 463.3 MB, free: 32.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.818e-05/0.5413, allocations: 79.98 kB / 463.4 MB, free: 32.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.723e-05/0.5415, allocations: 69.31 kB / 463.4 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.5425, allocations: 0.7852 MB / 464.2 MB, free: 32.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.5426, allocations: 0 / 464.2 MB, free: 32.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.11e-05/0.5426, allocations: 25.69 kB / 464.2 MB, free: 32.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.5426, allocations: 16.34 kB / 464.2 MB, free: 32.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.5439, allocations: 0.8787 MB / 465.1 MB, free: 32.25 MB / 366.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.003575/0.5475, allocations: 2.573 MB / 467.7 MB, free: 30.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.5489, allocations: 1.012 MB / 468.7 MB, free: 30.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004317/0.5494, allocations: 307.5 kB / 469 MB, free: 29.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003388/0.5528, allocations: 2.848 MB / 471.9 MB, free: 27.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.5528, allocations: 36.41 kB / 471.9 MB, free: 27.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.395e-06/0.5528, allocations: 0 / 471.9 MB, free: 27.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002393/0.5552, allocations: 1.223 MB / 473.1 MB, free: 26.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.5553, allocations: 56.59 kB / 473.2 MB, free: 26.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/0.5557, allocations: 419.6 kB / 473.6 MB, free: 26.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.5557, allocations: 36.23 kB / 473.6 MB, free: 26.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.5559, allocations: 366.9 kB / 474 MB, free: 26.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.025e-05/0.556, allocations: 164.6 kB / 474.1 MB, free: 26.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.5562, allocations: 127.6 kB / 474.3 MB, free: 26.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.488e-05/0.5563, allocations: 358.7 kB / 474.6 MB, free: 25.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002537/0.5565, allocations: 153 kB / 474.8 MB, free: 25.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.5569, allocations: 388.9 kB / 475.1 MB, free: 25.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006654/0.5576, allocations: 0.5829 MB / 475.7 MB, free: 24.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5576, allocations: 2.75 kB / 475.7 MB, free: 24.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009741/0.5586, allocations: 0.6128 MB / 476.3 MB, free: 24.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.5586, allocations: 9.812 kB / 476.4 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.5586, allocations: 11.53 kB / 476.4 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.5587, allocations: 11.69 kB / 476.4 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007197/0.5594, allocations: 212.5 kB / 476.6 MB, free: 24.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.119e-05/0.5594, allocations: 14.84 kB / 476.6 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004248/0.5598, allocations: 43.27 kB / 476.6 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.22e-05/0.5599, allocations: 38.73 kB / 476.7 MB, free: 24.62 MB / 366.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.0002558/0.5602, allocations: 198.6 kB / 476.9 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.112e-05/0.5603, allocations: 47.28 kB / 476.9 MB, free: 24.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009708/0.5612, allocations: 0.5039 MB / 477.4 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.5613, allocations: 5.438 kB / 477.4 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5613, allocations: 0 / 477.4 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.5613, allocations: 7.234 kB / 477.4 MB, free: 24.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007788/0.5621, allocations: 0.6198 MB / 478.1 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.5621, allocations: 1.125 kB / 478.1 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/0.5626, allocations: 149.2 kB / 478.2 MB, free: 23.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.5627, allocations: 3.312 kB / 478.2 MB, free: 23.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.228e-05/0.5627, allocations: 19.19 kB / 478.2 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.5627, allocations: 2.719 kB / 478.2 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5627, allocations: 2.625 kB / 478.2 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009344/0.5636, allocations: 0.7225 MB / 478.9 MB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.5638, allocations: 159 kB / 479.1 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.041e-05/0.5639, allocations: 16.06 kB / 479.1 MB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.5642, allocations: 22.45 kB / 479.1 MB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.5643, allocations: 34.91 kB / 479.2 MB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/0.5643, allocations: 17.5 kB / 479.2 MB, free: 23.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002956/0.5646, allocations: 281.6 kB / 479.5 MB, free: 23.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5646, allocations: 0 / 479.5 MB, free: 23.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001101/0.5657, allocations: 332.2 kB / 479.8 MB, free: 22.97 MB / 366.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.0007436/0.5665, allocations: 433.4 kB / 480.2 MB, free: 22.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007391/0.5672, allocations: 432.1 kB / 480.6 MB, free: 22.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.195e-06/0.5672, allocations: 4.25 kB / 480.6 MB, free: 22.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.5675, allocations: 208.3 kB / 480.8 MB, free: 22.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.5683, allocations: 125.7 kB / 481 MB, free: 22.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.5702, allocations: 1.467 MB / 482.4 MB, free: 21.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.5706, allocations: 0.889 MB / 483.3 MB, free: 20.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004903/0.5711, allocations: 119.2 kB / 483.4 MB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.5712, allocations: 72.59 kB / 483.5 MB, free: 20.77 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5712, allocations: 3.938 kB / 483.5 MB, free: 20.77 MB / 366.1 MB Notification: Performance of Templates: time 0.01752/0.5888, allocations: 9.669 MB / 493.2 MB, free: 19.83 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)