Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") translateModel(Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1063/0.1063, allocations: 15.27 MB / 30.21 MB, free: 3.297 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.001015/0.001015, allocations: 180.2 kB / 35.29 MB, free: 2.379 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.456/1.456, allocations: 223.2 MB / 263.4 MB, free: 6.988 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.001053/0.001053, allocations: 92.25 kB / 318.8 MB, free: 3.852 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.000338, allocations: 11 kB / 383.9 MB, free: 50.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.09916, allocations: 54.64 MB / 438.6 MB, free: 488 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4145/0.5137, allocations: 99.87 MB / 0.5258 GB, free: 15.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.514, allocations: 67.16 kB / 0.5259 GB, free: 15.5 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. [/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 C.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$C. 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.1001/0.6142, allocations: 34.46 MB / 0.5595 GB, free: 25.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6142, allocations: 0 / 0.5595 GB, free: 25.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.098e-05/0.6143, allocations: 19.03 kB / 0.5595 GB, free: 25.51 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002608/0.6169, allocations: 1.385 MB / 0.5609 GB, free: 24.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.617, allocations: 7.719 kB / 0.5609 GB, free: 24.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008847/0.6178, allocations: 252.2 kB / 0.5611 GB, free: 24.44 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.619, allocations: 0.7576 MB / 0.5619 GB, free: 24.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.515e-05/0.6191, allocations: 91.27 kB / 0.562 GB, free: 23.97 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.6193, allocations: 94.78 kB / 0.5621 GB, free: 23.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.621, allocations: 1.519 MB / 0.5635 GB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.621, allocations: 0 / 0.5635 GB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.683e-05/0.6211, allocations: 33.69 kB / 0.5636 GB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.6211, allocations: 23.41 kB / 0.5636 GB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002101/0.6232, allocations: 2.161 MB / 0.5657 GB, free: 23.3 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.005455/0.6287, allocations: 4.817 MB / 0.5704 GB, free: 21.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/0.631, allocations: 2.162 MB / 0.5725 GB, free: 20.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000299/0.6313, allocations: 250.7 kB / 0.5728 GB, free: 20.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.6314, allocations: 46.59 kB / 0.5728 GB, free: 20.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 2.815e-06/0.6314, allocations: 3.938 kB / 0.5728 GB, free: 20.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.008062/0.6394, allocations: 5.458 MB / 0.5781 GB, free: 19.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/0.6395, allocations: 64.06 kB / 0.5782 GB, free: 19.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006778/0.6402, allocations: 0.5682 MB / 0.5788 GB, free: 19.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.632e-05/0.6403, allocations: 48.58 kB / 0.5788 GB, free: 19.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.6406, allocations: 397.8 kB / 0.5792 GB, free: 18.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.6408, allocations: 416.3 kB / 0.5796 GB, free: 18.58 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.175e-05/0.6409, allocations: 25.91 kB / 0.5796 GB, free: 18.58 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.641, allocations: 395.7 kB / 0.58 GB, free: 18.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007143/0.6418, allocations: 0.6973 MB / 0.5807 GB, free: 18.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000786/0.6425, allocations: 0.8317 MB / 0.5815 GB, free: 17.95 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007999/0.6434, allocations: 0.7721 MB / 0.5822 GB, free: 17.61 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.6434, allocations: 0 / 0.5822 GB, free: 17.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001903/0.6453, allocations: 1.841 MB / 0.584 GB, free: 16.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.6453, allocations: 10.22 kB / 0.584 GB, free: 16.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.6453, allocations: 2.938 kB / 0.584 GB, free: 16.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/0.6457, allocations: 147.5 kB / 0.5842 GB, free: 16.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.647, allocations: 279.8 kB / 0.5844 GB, free: 16.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005617/0.6476, allocations: 0.7829 MB / 0.5852 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006708/0.6483, allocations: 47 kB / 0.5853 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.852e-05/0.6484, allocations: 42.98 kB / 0.5853 GB, free: 15.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (132): * Single equations (assignments): 131 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004348/0.6488, allocations: 260.2 kB / 0.5855 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.6489, allocations: 89.62 kB / 0.5856 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002288/0.6512, allocations: 1.976 MB / 0.5876 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.6512, allocations: 15.25 kB / 0.5876 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.6513, allocations: 0 / 0.5876 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.6513, allocations: 11.92 kB / 0.5876 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004445/0.6557, allocations: 4.011 MB / 0.5915 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.6558, allocations: 3.844 kB / 0.5915 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.657, allocations: 264.7 kB / 0.5918 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000366/0.6574, allocations: 150.1 kB / 0.5919 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/0.6575, allocations: 39.02 kB / 0.5919 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005761/0.6581, allocations: 0.7809 MB / 0.5927 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.6581, allocations: 7.812 kB / 0.5927 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004061/0.6622, allocations: 3.209 MB / 0.5958 GB, free: 7.809 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005981/0.6628, allocations: 255.9 kB / 0.5961 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.6629, allocations: 28 kB / 0.5961 GB, free: 7.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/0.6635, allocations: 47.89 kB / 0.5962 GB, free: 7.465 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.6637, allocations: 96.77 kB / 0.5963 GB, free: 7.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-05/0.6637, allocations: 43.98 kB / 0.5963 GB, free: 7.328 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000659/0.6644, allocations: 463 kB / 0.5967 GB, free: 6.879 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6644, allocations: 0 / 0.5967 GB, free: 6.879 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001734/0.6662, allocations: 0.5698 MB / 0.5973 GB, free: 6.309 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (131): * Single equations (assignments): 130 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001261/0.6674, allocations: 0.6815 MB / 0.598 GB, free: 5.691 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.6697, allocations: 1.649 MB / 0.5996 GB, free: 4.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.6697, allocations: 4.125 kB / 0.5996 GB, free: 4.035 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.6709, allocations: 0.88 MB / 0.6004 GB, free: 3.152 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.6722, allocations: 286.5 kB / 0.6007 GB, free: 2.879 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/0.6759, allocations: 2.78 MB / 0.6034 GB, free: 32 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005997/0.6765, allocations: 1.064 MB / 0.6045 GB, free: 14.94 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007023/0.6773, allocations: 175.6 kB / 0.6046 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.6775, allocations: 103.4 kB / 0.6047 GB, free: 14.66 MB / 410.7 MB Notification: Performance of SimCode: time 6.52e-07/0.6775, allocations: 0 / 0.6047 GB, free: 14.66 MB / 410.7 MB Notification: Performance of Templates: time 0.03299/0.7105, allocations: 21.32 MB / 0.6255 GB, free: 9.539 MB / 426.7 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & ./Chemical_Chemical.Examples.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)