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.001103/0.001103, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009615/0.009615, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.418/1.418, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2631/0.2631, allocations: 15.27 MB / 306.7 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003622, allocations: 12 kB / 372.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4193, allocations: 54.62 MB / 426.7 MB, free: 40.22 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.04244/0.4618, allocations: 22.88 MB / 449.6 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00992/0.4718, allocations: 7.872 MB / 457.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.4729, allocations: 15.56 kB / 457.5 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008271/0.4737, allocations: 171.6 kB / 457.6 MB, free: 28.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0029/0.4766, allocations: 0.585 MB / 458.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003773/0.4804, allocations: 0.9046 MB / 459.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001966/0.4824, allocations: 0.91 MB / 460 MB, free: 27.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009201/0.4833, allocations: 432.6 kB / 460.5 MB, free: 26.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009737/0.4843, allocations: 403.4 kB / 460.9 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.4854, allocations: 464.5 kB / 461.3 MB, free: 26.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002274/0.4856, allocations: 41.22 kB / 461.3 MB, free: 26.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003634/0.4893, allocations: 0.8228 MB / 462.2 MB, free: 26.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.4896, allocations: 155.6 kB / 462.3 MB, free: 26.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008043/0.4904, allocations: 408.3 kB / 462.7 MB, free: 26.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004332/0.4947, allocations: 1.627 MB / 464.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4948, allocations: 0 / 464.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4948, allocations: 0 / 464.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.658e-05/0.4948, allocations: 0 / 464.3 MB, free: 25.4 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.00243/0.4973, allocations: 1.012 MB / 465.4 MB, free: 24.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.4973, allocations: 10 kB / 465.4 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009214/0.4983, allocations: 146.3 kB / 465.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.4993, allocations: 461.9 kB / 466 MB, free: 24.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.4994, allocations: 84.88 kB / 466 MB, free: 24.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002211/0.4997, allocations: 69.12 kB / 466.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.5015, allocations: 0.7772 MB / 466.9 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.571e-05/0.5016, allocations: 5.312 kB / 466.9 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.621e-05/0.5016, allocations: 25.5 kB / 466.9 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.5017, allocations: 16.5 kB / 466.9 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.5032, allocations: 0.876 MB / 467.8 MB, free: 23.61 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.004295/0.5076, allocations: 2.571 MB / 470.4 MB, free: 21.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.5089, allocations: 1.016 MB / 471.4 MB, free: 21.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003856/0.5093, allocations: 317.1 kB / 471.7 MB, free: 20.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003212/0.5125, allocations: 2.77 MB / 474.5 MB, free: 17.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.5125, allocations: 38.56 kB / 474.5 MB, free: 17.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.054e-06/0.5125, allocations: 4 kB / 474.5 MB, free: 17.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002533/0.5151, allocations: 1.242 MB / 475.8 MB, free: 16.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.5151, allocations: 55.41 kB / 475.8 MB, free: 16.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004375/0.5156, allocations: 420.9 kB / 476.2 MB, free: 16.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.5156, allocations: 29.7 kB / 476.3 MB, free: 16.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.5158, allocations: 369.2 kB / 476.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.5159, allocations: 166.3 kB / 476.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.535e-05/0.516, allocations: 56.33 kB / 476.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5161, allocations: 364.4 kB / 477.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.5164, allocations: 145.5 kB / 477.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.5167, allocations: 390.6 kB / 477.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.5173, allocations: 0.5789 MB / 478.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.5174, allocations: 8 kB / 478.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0008527/0.5182, allocations: 0.6058 MB / 478.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.5182, allocations: 11.42 kB / 478.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.5183, allocations: 11.94 kB / 478.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.5183, allocations: 12 kB / 478.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006145/0.5189, allocations: 205.7 kB / 479.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/0.5189, allocations: 19.12 kB / 479.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004292/0.5194, allocations: 35.23 kB / 479.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.858e-05/0.5194, allocations: 34.53 kB / 479.2 MB, free: 13.22 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.0002211/0.5197, allocations: 212.6 kB / 479.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.5197, allocations: 51.34 kB / 479.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008047/0.5206, allocations: 0.4898 MB / 480 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5206, allocations: 4 kB / 480 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.5206, allocations: 3.938 kB / 480 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.5206, allocations: 3.281 kB / 480 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007853/0.5214, allocations: 0.6273 MB / 480.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.5214, allocations: 0 / 480.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005327/0.522, allocations: 136.2 kB / 480.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.522, allocations: 4 kB / 480.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.204e-05/0.522, allocations: 21.61 kB / 480.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.522, allocations: 11.94 kB / 480.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.522, allocations: 0.6094 kB / 480.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008604/0.5229, allocations: 0.7191 MB / 481.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.5231, allocations: 161.5 kB / 481.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.703e-05/0.5232, allocations: 15.94 kB / 481.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.5234, allocations: 19.19 kB / 481.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.17e-05/0.5235, allocations: 37.55 kB / 481.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.5236, allocations: 20 kB / 481.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002325/0.5238, allocations: 274.1 kB / 482 MB, free: 10.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5238, allocations: 0 / 482 MB, free: 10.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001039/0.5249, allocations: 340.9 kB / 482.4 MB, free: 10.28 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.0009621/0.5258, allocations: 435.5 kB / 482.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006559/0.5265, allocations: 442.1 kB / 483.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5265, allocations: 0 / 483.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.5268, allocations: 205.4 kB / 483.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008502/0.5277, allocations: 120.7 kB / 483.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.5298, allocations: 1.548 MB / 485.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.5301, allocations: 0.8868 MB / 486 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004874/0.5306, allocations: 122.8 kB / 486.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.5308, allocations: 79.44 kB / 486.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5308, allocations: 0 / 486.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of Templates: time 0.01672/0.5475, allocations: 9.631 MB / 495.8 MB, free: 15.95 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)