Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.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.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1191/0.1191, allocations: 15.26 MB / 30.21 MB, free: 3.195 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.00106/0.00106, allocations: 182.2 kB / 35.29 MB, free: 2.367 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.386/1.386, allocations: 223.2 MB / 263.4 MB, free: 6.578 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.001197/0.001197, allocations: 88.33 kB / 318.8 MB, free: 3.469 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003648, allocations: 8.797 kB / 383.9 MB, free: 50.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 54.65 MB / 438.6 MB, free: 404 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3995/0.5154, allocations: 94.93 MB / 0.521 GB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.5156, allocations: 75.44 kB / 0.5211 GB, free: 15.51 MB / 378.7 MB [/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.Sources.PureSubstance. 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:1535:7-1535:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System reaction.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.Sensors.DissociationCoefficient$reaction. 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.Sources.PureSubstance. 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.Sources.PureSubstance$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.04703/0.5627, allocations: 19.39 MB / 0.54 GB, free: 30.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5627, allocations: 0 / 0.54 GB, free: 30.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.845e-05/0.5628, allocations: 15.5 kB / 0.54 GB, free: 30.04 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001392/0.5642, allocations: 0.8968 MB / 0.5409 GB, free: 29.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.5642, allocations: 11.62 kB / 0.5409 GB, free: 29.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006481/0.5649, allocations: 207.3 kB / 0.5411 GB, free: 29.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006507/0.5655, allocations: 0.4951 MB / 0.5416 GB, free: 29.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.5656, allocations: 23.19 kB / 0.5416 GB, free: 29.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.5656, allocations: 34.83 kB / 0.5417 GB, free: 29.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009834/0.5666, allocations: 0.9793 MB / 0.5426 GB, free: 28.97 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.5666, allocations: 4 kB / 0.5426 GB, free: 28.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.5667, allocations: 10.75 kB / 0.5426 GB, free: 28.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.5667, allocations: 11.73 kB / 0.5426 GB, free: 28.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.5681, allocations: 1.66 MB / 0.5443 GB, free: 28.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003076/0.5712, allocations: 3.01 MB / 0.5472 GB, free: 27.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.46e-05/0.5713, allocations: 56.53 kB / 0.5472 GB, free: 27.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.5713, allocations: 3.688 kB / 0.5473 GB, free: 27.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.5714, allocations: 38.41 kB / 0.5473 GB, free: 27.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 2.354e-06/0.5714, allocations: 0 / 0.5473 GB, free: 27.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002963/0.5717, allocations: 162.9 kB / 0.5474 GB, free: 27.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.5717, allocations: 55.28 kB / 0.5475 GB, free: 27.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001515/0.5732, allocations: 1.722 MB / 0.5492 GB, free: 27.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.5732, allocations: 29.2 kB / 0.5492 GB, free: 27.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002243/0.5735, allocations: 387.8 kB / 0.5496 GB, free: 27.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.5735, allocations: 26 kB / 0.5496 GB, free: 27.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.5735, allocations: 14.97 kB / 0.5496 GB, free: 27.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.5737, allocations: 375.6 kB / 0.55 GB, free: 27.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004163/0.5741, allocations: 490.8 kB / 0.5504 GB, free: 27.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004887/0.5746, allocations: 0.6571 MB / 0.5511 GB, free: 26.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004855/0.5751, allocations: 0.5309 MB / 0.5516 GB, free: 26.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5751, allocations: 3.938 kB / 0.5516 GB, free: 26.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001205/0.5763, allocations: 1.234 MB / 0.5528 GB, free: 26.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.5764, allocations: 7.688 kB / 0.5528 GB, free: 26.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.5764, allocations: 4.719 kB / 0.5528 GB, free: 26.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.5764, allocations: 15.61 kB / 0.5528 GB, free: 26.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.5768, allocations: 112.4 kB / 0.5529 GB, free: 26.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.5768, allocations: 11.67 kB / 0.553 GB, free: 26.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005242/0.5774, allocations: 64.89 kB / 0.553 GB, free: 26.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.5774, allocations: 30.17 kB / 0.553 GB, free: 26.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (53): * Single equations (assignments): 53 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002305/0.5776, allocations: 187.5 kB / 0.5532 GB, free: 26.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-05/0.5777, allocations: 61.94 kB / 0.5533 GB, free: 26.36 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002338/0.578, allocations: 153.5 kB / 0.5534 GB, free: 26.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.578, allocations: 4 kB / 0.5534 GB, free: 26.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.578, allocations: 0 / 0.5534 GB, free: 26.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.578, allocations: 0 / 0.5534 GB, free: 26.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00084/0.5788, allocations: 0.8006 MB / 0.5542 GB, free: 25.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5789, allocations: 8.062 kB / 0.5542 GB, free: 25.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.871e-05/0.5789, allocations: 11.73 kB / 0.5542 GB, free: 25.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.5789, allocations: 3.844 kB / 0.5542 GB, free: 25.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.579, allocations: 0 / 0.5542 GB, free: 25.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.579, allocations: 8.156 kB / 0.5542 GB, free: 25.69 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.579, allocations: 0 / 0.5542 GB, free: 25.69 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002255/0.5792, allocations: 273.5 kB / 0.5545 GB, free: 25.45 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.5794, allocations: 181.6 kB / 0.5547 GB, free: 25.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/0.5795, allocations: 11.84 kB / 0.5547 GB, free: 25.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.5797, allocations: 5.5 kB / 0.5547 GB, free: 25.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.545e-05/0.5797, allocations: 17.31 kB / 0.5547 GB, free: 25.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.5797, allocations: 3.875 kB / 0.5547 GB, free: 25.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001072/0.5808, allocations: 1.37 MB / 0.5561 GB, free: 25.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5808, allocations: 0 / 0.5561 GB, free: 25.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007947/0.5816, allocations: 291.5 kB / 0.5563 GB, free: 24.99 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000572/0.5822, allocations: 367.2 kB / 0.5567 GB, free: 24.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006776/0.5829, allocations: 0.6087 MB / 0.5573 GB, free: 24.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5829, allocations: 0 / 0.5573 GB, free: 24.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.365e-05/0.583, allocations: 35.92 kB / 0.5573 GB, free: 24.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008602/0.5838, allocations: 207 kB / 0.5575 GB, free: 24.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.5849, allocations: 0.954 MB / 0.5584 GB, free: 24 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.5853, allocations: 0.8583 MB / 0.5593 GB, free: 23.22 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003421/0.5856, allocations: 130.1 kB / 0.5594 GB, free: 23.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.015e-05/0.5857, allocations: 49.95 kB / 0.5595 GB, free: 23.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.253e-06/0.5857, allocations: 0 / 0.5595 GB, free: 23.14 MB / 394.7 MB Notification: Performance of Templates: time 0.01543/0.6012, allocations: 11.58 MB / 0.5708 GB, free: 17.49 MB / 394.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)