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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001401, allocations: 110.3 kB / 16.41 MB, free: 6.477 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.0014/0.0014, allocations: 183 kB / 17.34 MB, free: 5.754 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.088/0.088, allocations: 15.31 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 64.12 kB / 425.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1078, allocations: 53.61 MB / 479.4 MB, free: 5.945 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.SimpleReaction): time 0.03488/0.1427, allocations: 23.81 MB / 0.4915 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1528, allocations: 7.959 MB / 0.4992 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006443/0.1535, allocations: 11.94 kB / 0.4992 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006514/0.1542, allocations: 182.5 kB / 0.4994 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.1562, allocations: 0.6864 MB / 0.5001 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00285/0.159, allocations: 1.033 MB / 0.5011 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001559/0.1606, allocations: 0.9278 MB / 0.502 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007498/0.1614, allocations: 0.5135 MB / 0.5025 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005676/0.162, allocations: 458.7 kB / 0.5029 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007003/0.1627, allocations: 498.3 kB / 0.5034 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.1628, allocations: 80 kB / 0.5035 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002812/0.1656, allocations: 0.862 MB / 0.5043 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002093/0.1659, allocations: 195.4 kB / 0.5045 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004256/0.1663, allocations: 418.1 kB / 0.5049 GB, free: 384 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2468/0.4132, allocations: 1.763 MB / 0.5066 GB, free: 20.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4132, allocations: 0 / 0.5066 GB, free: 20.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.4132, allocations: 0.5625 kB / 0.5066 GB, free: 20.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.4132, allocations: 0 / 0.5066 GB, free: 20.74 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002285/0.4155, allocations: 1.165 MB / 0.5078 GB, free: 20.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.4156, allocations: 11.42 kB / 0.5078 GB, free: 20.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007088/0.4163, allocations: 156.4 kB / 0.5079 GB, free: 20.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007559/0.4171, allocations: 478.2 kB / 0.5084 GB, free: 19.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.661e-05/0.4172, allocations: 84.62 kB / 0.5085 GB, free: 19.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.4173, allocations: 68.09 kB / 0.5085 GB, free: 19.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.4187, allocations: 0.7791 MB / 0.5093 GB, free: 19.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.4187, allocations: 0 / 0.5093 GB, free: 19.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-05/0.4188, allocations: 25.09 kB / 0.5093 GB, free: 19.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.4188, allocations: 16.41 kB / 0.5093 GB, free: 19.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.4201, allocations: 0.8788 MB / 0.5102 GB, free: 19.65 MB / 382.1 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.003856/0.424, allocations: 2.564 MB / 0.5127 GB, free: 18.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.4255, allocations: 1.006 MB / 0.5137 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.426, allocations: 309.2 kB / 0.514 GB, free: 18.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003485/0.4294, allocations: 2.85 MB / 0.5168 GB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.4295, allocations: 37.28 kB / 0.5168 GB, free: 16.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.983e-06/0.4295, allocations: 0 / 0.5168 GB, free: 16.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=46): time 0.002639/0.4321, allocations: 1.233 MB / 0.518 GB, free: 15.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.4322, allocations: 59.81 kB / 0.5181 GB, free: 15.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004908/0.4327, allocations: 421 kB / 0.5185 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.4327, allocations: 35.2 kB / 0.5185 GB, free: 15.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.4329, allocations: 364.5 kB / 0.5188 GB, free: 15.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.433, allocations: 160.3 kB / 0.519 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.4332, allocations: 127.2 kB / 0.5191 GB, free: 14.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.4333, allocations: 360.8 kB / 0.5195 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.4336, allocations: 149.6 kB / 0.5196 GB, free: 14.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.4339, allocations: 388.9 kB / 0.52 GB, free: 14.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006398/0.4346, allocations: 0.5839 MB / 0.5205 GB, free: 13.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.4346, allocations: 2.438 kB / 0.5206 GB, free: 13.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009952/0.4356, allocations: 0.6115 MB / 0.5211 GB, free: 13.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.4356, allocations: 7.281 kB / 0.5212 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.4357, allocations: 9.25 kB / 0.5212 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.145e-05/0.4357, allocations: 15 kB / 0.5212 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007676/0.4365, allocations: 205.2 kB / 0.5214 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.662e-05/0.4365, allocations: 17.61 kB / 0.5214 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003515/0.4369, allocations: 18.56 kB / 0.5214 GB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.4369, allocations: 39.12 kB / 0.5214 GB, free: 13.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (83): * Single equations (assignments): 83 * 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.0002479/0.4372, allocations: 210.3 kB / 0.5216 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.971e-05/0.4373, allocations: 53.59 kB / 0.5217 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009663/0.4383, allocations: 0.497 MB / 0.5222 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.4383, allocations: 5.375 kB / 0.5222 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.4383, allocations: 1.031 kB / 0.5222 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.4383, allocations: 6 kB / 0.5222 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008822/0.4392, allocations: 0.6242 MB / 0.5228 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.4392, allocations: 2.125 kB / 0.5228 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/0.4398, allocations: 141 kB / 0.5229 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.4398, allocations: 5.688 kB / 0.5229 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.4399, allocations: 21 kB / 0.523 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.4399, allocations: 2.719 kB / 0.523 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4399, allocations: 3.234 kB / 0.523 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009697/0.4408, allocations: 0.7176 MB / 0.5237 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.4411, allocations: 161.5 kB / 0.5238 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.019e-05/0.4411, allocations: 16.03 kB / 0.5238 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.4413, allocations: 12.55 kB / 0.5239 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.986e-05/0.4414, allocations: 36.98 kB / 0.5239 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.4415, allocations: 19.56 kB / 0.5239 GB, free: 12.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003061/0.4418, allocations: 278.8 kB / 0.5242 GB, free: 12.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4418, allocations: 0 / 0.5242 GB, free: 12.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001209/0.443, allocations: 327.5 kB / 0.5245 GB, free: 12.03 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (53): * Single equations (assignments): 53 * 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.0008447/0.4439, allocations: 440.6 kB / 0.5249 GB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007749/0.4447, allocations: 440.3 kB / 0.5253 GB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4447, allocations: 0 / 0.5253 GB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002842/0.445, allocations: 208.7 kB / 0.5255 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007458/0.4457, allocations: 125.3 kB / 0.5256 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.4476, allocations: 1.216 MB / 0.5268 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.448, allocations: 0.884 MB / 0.5277 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.4483, allocations: 99.33 kB / 0.5278 GB, free: 10.3 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4483, allocations: 0 / 0.5278 GB, free: 10.3 MB / 382.1 MB Notification: Performance of Templates: time 0.01338/0.4616, allocations: 9.105 MB / 0.5367 GB, free: 7.703 MB / 382.1 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)