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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 106.5 kB / 16.41 MB, free: 5.973 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.001376/0.001376, allocations: 186.9 kB / 17.34 MB, free: 5.586 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.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08602/0.08602, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 59.91 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1103, allocations: 53.62 MB / 479.5 MB, free: 5.785 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.CheckSubstancesData.SimpleReaction2): time 0.03523/0.1455, allocations: 23.01 MB / 0.4907 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.1564, allocations: 9.171 MB / 0.4997 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005407/0.157, allocations: 7.938 kB / 0.4997 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007911/0.1578, allocations: 222.4 kB / 0.4999 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001249/0.1591, allocations: 341.3 kB / 0.5002 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004208/0.1633, allocations: 1.424 MB / 0.5016 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.1645, allocations: 0.6736 MB / 0.5023 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.165, allocations: 225.2 kB / 0.5025 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.1655, allocations: 327.1 kB / 0.5028 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006272/0.1661, allocations: 338.9 kB / 0.5031 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.1663, allocations: 36 kB / 0.5031 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002844/0.1691, allocations: 0.819 MB / 0.5039 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.1694, allocations: 119.6 kB / 0.5041 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.1698, allocations: 262.7 kB / 0.5043 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2772/0.447, allocations: 1.494 MB / 0.5058 GB, free: 22.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4471, allocations: 0 / 0.5058 GB, free: 22.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.4471, allocations: 1.062 kB / 0.5058 GB, free: 22.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.4471, allocations: 3.312 kB / 0.5058 GB, free: 22.08 MB / 382.1 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.001682/0.4488, allocations: 0.9311 MB / 0.5067 GB, free: 21.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.4489, allocations: 9.281 kB / 0.5067 GB, free: 21.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008524/0.4497, allocations: 162.8 kB / 0.5068 GB, free: 21.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006946/0.4504, allocations: 453.8 kB / 0.5073 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.4505, allocations: 24.03 kB / 0.5073 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.199e-05/0.4505, allocations: 28.97 kB / 0.5073 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000891/0.4514, allocations: 0.5308 MB / 0.5078 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.4515, allocations: 5.625 kB / 0.5078 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/0.4515, allocations: 10.34 kB / 0.5079 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.4515, allocations: 9.844 kB / 0.5079 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.4529, allocations: 0.8054 MB / 0.5087 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.4554, allocations: 1.875 MB / 0.5105 GB, free: 20.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004662/0.4559, allocations: 218.3 kB / 0.5107 GB, free: 20.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.4561, allocations: 142.5 kB / 0.5108 GB, free: 20.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003074/0.4592, allocations: 2.709 MB / 0.5135 GB, free: 18.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.4592, allocations: 42.28 kB / 0.5135 GB, free: 18.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 2.284e-06/0.4592, allocations: 0 / 0.5135 GB, free: 18.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005925/0.4598, allocations: 290.4 kB / 0.5138 GB, free: 17.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.4599, allocations: 51.41 kB / 0.5138 GB, free: 17.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005622/0.4604, allocations: 477.3 kB / 0.5143 GB, free: 17.78 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.4605, allocations: 27.08 kB / 0.5143 GB, free: 17.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.4607, allocations: 296.3 kB / 0.5146 GB, free: 17.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.946e-05/0.4607, allocations: 64.61 kB / 0.5147 GB, free: 17.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.4609, allocations: 95.7 kB / 0.5148 GB, free: 17.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.461, allocations: 360.3 kB / 0.5151 GB, free: 17.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.4612, allocations: 88.22 kB / 0.5152 GB, free: 17.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.4615, allocations: 358.9 kB / 0.5155 GB, free: 16.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005429/0.4621, allocations: 0.4929 MB / 0.516 GB, free: 16.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.303e-06/0.4621, allocations: 2.75 kB / 0.516 GB, free: 16.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007969/0.4629, allocations: 485.6 kB / 0.5165 GB, free: 16.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.4629, allocations: 13.72 kB / 0.5165 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.463, allocations: 10.98 kB / 0.5165 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.463, allocations: 13.77 kB / 0.5165 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003431/0.4633, allocations: 114.5 kB / 0.5166 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.689e-05/0.4634, allocations: 18.62 kB / 0.5166 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.4637, allocations: 58.88 kB / 0.5167 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.734e-05/0.4638, allocations: 41.22 kB / 0.5167 GB, free: 16.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * 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.0001825/0.464, allocations: 175.4 kB / 0.5169 GB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.32e-05/0.464, allocations: 51.59 kB / 0.517 GB, free: 16.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006913/0.4647, allocations: 389.9 kB / 0.5173 GB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4648, allocations: 1.094 kB / 0.5173 GB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.4648, allocations: 4.469 kB / 0.5173 GB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4648, allocations: 0 / 0.5173 GB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008308/0.4656, allocations: 0.7192 MB / 0.518 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4656, allocations: 2.109 kB / 0.518 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.952e-05/0.4657, allocations: 14.12 kB / 0.518 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.4657, allocations: 6.25 kB / 0.5181 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.4657, allocations: 2.312 kB / 0.5181 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4657, allocations: 4.844 kB / 0.5181 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4658, allocations: 1.312 kB / 0.5181 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.466, allocations: 204.4 kB / 0.5183 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.4662, allocations: 126.7 kB / 0.5184 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.956e-05/0.4662, allocations: 16.7 kB / 0.5184 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.4664, allocations: 6.312 kB / 0.5184 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.936e-05/0.4664, allocations: 9.281 kB / 0.5184 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.4664, allocations: 2.219 kB / 0.5184 GB, free: 15.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006303/0.4671, allocations: 414.8 kB / 0.5188 GB, free: 15.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4671, allocations: 0 / 0.5188 GB, free: 15.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009354/0.468, allocations: 252 kB / 0.519 GB, free: 15.33 MB / 382.1 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 (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.0007417/0.4688, allocations: 394.9 kB / 0.5194 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004626/0.4692, allocations: 232.2 kB / 0.5196 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.4693, allocations: 1.594 kB / 0.5196 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.874e-05/0.4693, allocations: 32.86 kB / 0.5197 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006755/0.47, allocations: 120.7 kB / 0.5198 GB, free: 15.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.4712, allocations: 0.7078 MB / 0.5205 GB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.4715, allocations: 0.8103 MB / 0.5213 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.4717, allocations: 88.58 kB / 0.5214 GB, free: 14.09 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4717, allocations: 2.656 kB / 0.5214 GB, free: 14.09 MB / 382.1 MB Notification: Performance of Templates: time 0.01455/0.4863, allocations: 7.899 MB / 0.5291 GB, free: 12.84 MB / 382.1 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)