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.008977/0.008984, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.00137/0.00137, allocations: 189.4 kB / 16.67 MB, free: 5.969 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.479/1.479, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1084/0.1084, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 59.91 kB / 425.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1518, allocations: 53.62 MB / 478.8 MB, free: 5.762 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.03813/0.1899, allocations: 23.01 MB / 0.49 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01113/0.2011, allocations: 9.167 MB / 0.499 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006186/0.2018, allocations: 11.88 kB / 0.499 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007912/0.2026, allocations: 214.5 kB / 0.4992 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.2038, allocations: 341.3 kB / 0.4995 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00484/0.2086, allocations: 1.421 MB / 0.5009 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.2099, allocations: 0.6736 MB / 0.5016 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003608/0.2103, allocations: 237.1 kB / 0.5018 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003493/0.2106, allocations: 323.2 kB / 0.5021 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004849/0.2111, allocations: 338.8 kB / 0.5024 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.895e-05/0.2112, allocations: 36 kB / 0.5025 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.2144, allocations: 0.8191 MB / 0.5033 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.2145, allocations: 127.5 kB / 0.5034 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.2148, allocations: 258.7 kB / 0.5036 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3236/0.5385, allocations: 1.493 MB / 0.5051 GB, free: 21.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.5385, allocations: 0.5156 kB / 0.5051 GB, free: 21.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5386, allocations: 2.719 kB / 0.5051 GB, free: 21.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.5386, allocations: 0 / 0.5051 GB, free: 21.99 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.001763/0.5404, allocations: 0.9308 MB / 0.506 GB, free: 21.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.5404, allocations: 12.78 kB / 0.506 GB, free: 21.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000877/0.5413, allocations: 160.5 kB / 0.5062 GB, free: 21.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007826/0.5421, allocations: 456.3 kB / 0.5066 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.586e-05/0.5421, allocations: 24.34 kB / 0.5066 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.5422, allocations: 29.38 kB / 0.5067 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009354/0.5432, allocations: 0.5332 MB / 0.5072 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.5432, allocations: 1.125 kB / 0.5072 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.163e-05/0.5432, allocations: 16.16 kB / 0.5072 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.5433, allocations: 9.156 kB / 0.5072 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.5447, allocations: 0.8054 MB / 0.508 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002499/0.5472, allocations: 1.871 MB / 0.5098 GB, free: 20.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004358/0.5476, allocations: 218.3 kB / 0.51 GB, free: 20 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.5479, allocations: 144.6 kB / 0.5102 GB, free: 20 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00311/0.551, allocations: 2.706 MB / 0.5128 GB, free: 17.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.551, allocations: 34.78 kB / 0.5128 GB, free: 17.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 2.615e-06/0.551, allocations: 3.891 kB / 0.5128 GB, free: 17.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005861/0.5516, allocations: 298.3 kB / 0.5131 GB, free: 17.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.5517, allocations: 52.97 kB / 0.5132 GB, free: 17.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000524/0.5522, allocations: 475.6 kB / 0.5136 GB, free: 17.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.5522, allocations: 29.02 kB / 0.5137 GB, free: 17.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.5524, allocations: 290.5 kB / 0.5139 GB, free: 17.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.982e-05/0.5525, allocations: 69.91 kB / 0.514 GB, free: 17.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.5526, allocations: 95.05 kB / 0.5141 GB, free: 17.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.5527, allocations: 360.4 kB / 0.5144 GB, free: 17.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.5529, allocations: 92.98 kB / 0.5145 GB, free: 17.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.5532, allocations: 360.2 kB / 0.5149 GB, free: 16.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000533/0.5537, allocations: 0.4925 MB / 0.5154 GB, free: 16.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.5538, allocations: 5.5 kB / 0.5154 GB, free: 16.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000756/0.5545, allocations: 483.5 kB / 0.5158 GB, free: 16.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.5546, allocations: 12.8 kB / 0.5158 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.5546, allocations: 11.73 kB / 0.5158 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/0.5546, allocations: 12.53 kB / 0.5159 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.5549, allocations: 112.5 kB / 0.516 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.748e-05/0.555, allocations: 17.77 kB / 0.516 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002914/0.5553, allocations: 61.3 kB / 0.516 GB, free: 16.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-05/0.5553, allocations: 34.98 kB / 0.5161 GB, free: 16.36 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.0001676/0.5555, allocations: 182.9 kB / 0.5162 GB, free: 16.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-05/0.5556, allocations: 49.19 kB / 0.5163 GB, free: 16.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007035/0.5563, allocations: 387.5 kB / 0.5167 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.5563, allocations: 1.281 kB / 0.5167 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.5563, allocations: 0 / 0.5167 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.5564, allocations: 3.266 kB / 0.5167 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008572/0.5572, allocations: 0.7177 MB / 0.5174 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.5572, allocations: 2.031 kB / 0.5174 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.5573, allocations: 16.53 kB / 0.5174 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.5573, allocations: 5.344 kB / 0.5174 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.5573, allocations: 2 kB / 0.5174 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.5573, allocations: 3.188 kB / 0.5174 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.5574, allocations: 4.812 kB / 0.5174 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002601/0.5576, allocations: 200.1 kB / 0.5176 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.5578, allocations: 123.9 kB / 0.5177 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.5578, allocations: 19.89 kB / 0.5177 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.558, allocations: 6.141 kB / 0.5177 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/0.558, allocations: 10.72 kB / 0.5177 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.558, allocations: 3.281 kB / 0.5177 GB, free: 15.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005372/0.5586, allocations: 414.3 kB / 0.5181 GB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5586, allocations: 0 / 0.5181 GB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008944/0.5595, allocations: 244.4 kB / 0.5184 GB, free: 15.24 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.0008074/0.5603, allocations: 403.6 kB / 0.5188 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004404/0.5608, allocations: 232.5 kB / 0.519 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.5608, allocations: 3.938 kB / 0.519 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-05/0.5608, allocations: 33.61 kB / 0.519 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.5615, allocations: 114.8 kB / 0.5191 GB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.5626, allocations: 0.681 MB / 0.5198 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.5629, allocations: 0.8117 MB / 0.5206 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004016/0.5634, allocations: 139.6 kB / 0.5207 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.5635, allocations: 55.91 kB / 0.5208 GB, free: 14.03 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.5635, allocations: 0 / 0.5208 GB, free: 14.03 MB / 382.1 MB Notification: Performance of Templates: time 0.01577/0.5793, allocations: 8.675 MB / 0.5292 GB, free: 12.45 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)