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.1489/0.1489, allocations: 15.26 MB / 31.21 MB, free: 3.223 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.001696/0.001696, allocations: 178.5 kB / 36.3 MB, free: 2.262 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.479/1.479, allocations: 223.3 MB / 264.5 MB, free: 6.125 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.0008835/0.0008836, allocations: 103.6 kB / 319.9 MB, free: 3.172 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007506/0.0007506, allocations: 10.44 kB / 385.2 MB, free: 50.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1456, allocations: 54.64 MB / 439.8 MB, free: 116 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3899/0.5356, allocations: 99.88 MB / 0.5271 GB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.5358, allocations: 69.06 kB / 0.5271 GB, free: 15.66 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System A.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$A. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System B.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$B. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.05793/0.5938, allocations: 24.69 MB / 0.5512 GB, free: 28.87 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5938, allocations: 0 / 0.5512 GB, free: 28.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.712e-05/0.5939, allocations: 15.38 kB / 0.5513 GB, free: 28.87 MB / 394.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.002344/0.5962, allocations: 1.079 MB / 0.5523 GB, free: 28.08 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.5963, allocations: 12.47 kB / 0.5523 GB, free: 28.08 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008268/0.5971, allocations: 181 kB / 0.5525 GB, free: 28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.5983, allocations: 0.6124 MB / 0.5531 GB, free: 27.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.736e-05/0.5984, allocations: 80.27 kB / 0.5532 GB, free: 27.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.5985, allocations: 72.19 kB / 0.5532 GB, free: 27.58 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.5998, allocations: 1.101 MB / 0.5543 GB, free: 27.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.5999, allocations: 3.938 kB / 0.5543 GB, free: 27.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.759e-05/0.5999, allocations: 25.22 kB / 0.5543 GB, free: 27.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.5999, allocations: 18.97 kB / 0.5544 GB, free: 27.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.6017, allocations: 1.541 MB / 0.5559 GB, free: 27.06 MB / 394.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.004824/0.6065, allocations: 3.744 MB / 0.5595 GB, free: 25.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.6084, allocations: 1.654 MB / 0.5611 GB, free: 25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/0.609, allocations: 0.5939 MB / 0.5617 GB, free: 24.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002083/0.6092, allocations: 164.7 kB / 0.5619 GB, free: 24.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.6093, allocations: 42.19 kB / 0.5619 GB, free: 24.86 MB / 394.7 MB Notification: Performance of pre-optimization done (n=70): time 2.605e-06/0.6093, allocations: 0 / 0.5619 GB, free: 24.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=84): time 0.005846/0.6151, allocations: 4.081 MB / 0.5659 GB, free: 23.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.6152, allocations: 60.19 kB / 0.566 GB, free: 23.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004821/0.6157, allocations: 0.4917 MB / 0.5664 GB, free: 23.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.907e-05/0.6157, allocations: 36.27 kB / 0.5665 GB, free: 23.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.6159, allocations: 314.7 kB / 0.5668 GB, free: 23.48 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.616, allocations: 294 kB / 0.5671 GB, free: 23.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.6161, allocations: 14.62 kB / 0.5671 GB, free: 23.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6162, allocations: 374.6 kB / 0.5674 GB, free: 22.94 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005799/0.6168, allocations: 0.5294 MB / 0.5679 GB, free: 22.87 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005526/0.6174, allocations: 0.6336 MB / 0.5686 GB, free: 22.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.6185, allocations: 1.219 MB / 0.5697 GB, free: 22.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.6185, allocations: 0 / 0.5697 GB, free: 22.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001446/0.62, allocations: 1.389 MB / 0.5711 GB, free: 22.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.62, allocations: 7.891 kB / 0.5711 GB, free: 22.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.62, allocations: 3.875 kB / 0.5711 GB, free: 22.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.6203, allocations: 99.11 kB / 0.5712 GB, free: 22.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009001/0.6212, allocations: 206.8 kB / 0.5714 GB, free: 22.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004556/0.6217, allocations: 0.6939 MB / 0.5721 GB, free: 21.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006051/0.6223, allocations: 36.36 kB / 0.5721 GB, free: 21.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.046e-05/0.6224, allocations: 34.52 kB / 0.5722 GB, free: 21.64 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (92): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004019/0.6228, allocations: 210.6 kB / 0.5724 GB, free: 21.51 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.623, allocations: 69.69 kB / 0.5724 GB, free: 21.47 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.6248, allocations: 1.44 MB / 0.5738 GB, free: 21.19 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.6248, allocations: 7.781 kB / 0.5738 GB, free: 21.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.6248, allocations: 0 / 0.5738 GB, free: 21.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.6248, allocations: 7.969 kB / 0.5738 GB, free: 21.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003391/0.6282, allocations: 2.758 MB / 0.5765 GB, free: 20.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.6283, allocations: 3.984 kB / 0.5765 GB, free: 20.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000859/0.6291, allocations: 208.1 kB / 0.5767 GB, free: 20.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002442/0.6294, allocations: 95.8 kB / 0.5768 GB, free: 20.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.797e-05/0.6295, allocations: 27.7 kB / 0.5769 GB, free: 20.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004316/0.6299, allocations: 0.682 MB / 0.5775 GB, free: 19.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.6299, allocations: 7.875 kB / 0.5775 GB, free: 19.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.6321, allocations: 2.214 MB / 0.5797 GB, free: 18.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/0.6324, allocations: 207.1 kB / 0.5799 GB, free: 18.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.6325, allocations: 19.88 kB / 0.5799 GB, free: 18.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003888/0.6329, allocations: 31.52 kB / 0.5799 GB, free: 18.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.986e-05/0.633, allocations: 67.27 kB / 0.58 GB, free: 18.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.321e-05/0.6331, allocations: 31.48 kB / 0.58 GB, free: 18.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003478/0.6335, allocations: 351 kB / 0.5804 GB, free: 18.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6335, allocations: 0 / 0.5804 GB, free: 18.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001022/0.6345, allocations: 407.2 kB / 0.5808 GB, free: 17.98 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (93): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008449/0.6353, allocations: 0.4979 MB / 0.5812 GB, free: 17.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.6367, allocations: 1.221 MB / 0.5824 GB, free: 17.13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.6367, allocations: 4 kB / 0.5824 GB, free: 17.13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006326/0.6374, allocations: 0.637 MB / 0.5831 GB, free: 16.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.6385, allocations: 212.4 kB / 0.5833 GB, free: 16.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.6409, allocations: 2.116 MB / 0.5853 GB, free: 15.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.6414, allocations: 0.9418 MB / 0.5862 GB, free: 14.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005161/0.6419, allocations: 127.3 kB / 0.5864 GB, free: 14.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.6421, allocations: 81.44 kB / 0.5864 GB, free: 14.37 MB / 394.7 MB Notification: Performance of SimCode: time 6.52e-07/0.6421, allocations: 3.938 kB / 0.5864 GB, free: 14.37 MB / 394.7 MB Notification: Performance of Templates: time 0.02437/0.6665, allocations: 15.98 MB / 0.6021 GB, free: 1.887 MB / 394.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)