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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 105.2 kB / 16.41 MB, free: 6.512 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.001792/0.001792, allocations: 187 kB / 17.34 MB, free: 5.742 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08526/0.08526, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 60.12 kB / 425.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1062, allocations: 53.62 MB / 479.5 MB, free: 5.801 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.SimpleReaction2): time 0.03897/0.1452, allocations: 24.61 MB / 0.4922 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01518/0.1604, allocations: 11.62 MB / 0.5036 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008747/0.1613, allocations: 11.94 kB / 0.5036 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.1624, allocations: 254.1 kB / 0.5039 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.1659, allocations: 0.9773 MB / 0.5048 GB, free: 368 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2537/0.4197, allocations: 1.496 MB / 0.5063 GB, free: 18.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002167/0.4219, allocations: 1.252 MB / 0.5075 GB, free: 18.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009712/0.4229, allocations: 0.6967 MB / 0.5082 GB, free: 18.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000914/0.4238, allocations: 0.613 MB / 0.5088 GB, free: 18.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009395/0.4247, allocations: 0.6647 MB / 0.5094 GB, free: 18.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001809/0.4249, allocations: 105.9 kB / 0.5095 GB, free: 18.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00435/0.4293, allocations: 1.291 MB / 0.5108 GB, free: 18.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002914/0.4296, allocations: 261.5 kB / 0.511 GB, free: 18.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006936/0.4303, allocations: 0.5428 MB / 0.5116 GB, free: 18.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005581/0.4359, allocations: 2.512 MB / 0.514 GB, free: 18.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.4359, allocations: 0 / 0.514 GB, free: 18.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.4359, allocations: 0 / 0.514 GB, free: 18.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.051e-05/0.436, allocations: 0 / 0.514 GB, free: 18.25 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002992/0.4389, allocations: 1.491 MB / 0.5155 GB, free: 17.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.439, allocations: 10.41 kB / 0.5155 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/0.4401, allocations: 214 kB / 0.5157 GB, free: 17.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008766/0.441, allocations: 0.5708 MB / 0.5162 GB, free: 17.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.551e-05/0.4411, allocations: 98.14 kB / 0.5163 GB, free: 17.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.4413, allocations: 98.75 kB / 0.5164 GB, free: 17.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.4431, allocations: 1.048 MB / 0.5175 GB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.4432, allocations: 3.469 kB / 0.5175 GB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.139e-05/0.4433, allocations: 35.78 kB / 0.5175 GB, free: 16.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.4433, allocations: 20.69 kB / 0.5175 GB, free: 16.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.4453, allocations: 1.274 MB / 0.5188 GB, free: 16.3 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.005157/0.4505, allocations: 3.471 MB / 0.5221 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.4527, allocations: 1.527 MB / 0.5236 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005838/0.4533, allocations: 434.8 kB / 0.5241 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004669/0.4579, allocations: 4.044 MB / 0.528 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.458, allocations: 38.16 kB / 0.528 GB, free: 10.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.435e-06/0.458, allocations: 0 / 0.528 GB, free: 10.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.003333/0.4613, allocations: 1.658 MB / 0.5297 GB, free: 9.262 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.4614, allocations: 64.09 kB / 0.5297 GB, free: 9.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006538/0.4621, allocations: 0.5111 MB / 0.5302 GB, free: 8.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.4621, allocations: 35.08 kB / 0.5303 GB, free: 8.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/0.4624, allocations: 462.6 kB / 0.5307 GB, free: 8.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000173/0.4626, allocations: 226 kB / 0.5309 GB, free: 8.383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.4628, allocations: 173.6 kB / 0.5311 GB, free: 8.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4629, allocations: 373 kB / 0.5314 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003457/0.4633, allocations: 211.2 kB / 0.5316 GB, free: 7.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005146/0.4638, allocations: 0.5374 MB / 0.5322 GB, free: 7.398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009125/0.4647, allocations: 0.8113 MB / 0.5329 GB, free: 6.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.4647, allocations: 2.75 kB / 0.5329 GB, free: 6.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001211/0.466, allocations: 0.8512 MB / 0.5338 GB, free: 6.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.466, allocations: 15.03 kB / 0.5338 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.466, allocations: 10.41 kB / 0.5338 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.084e-05/0.4661, allocations: 19.06 kB / 0.5338 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009081/0.467, allocations: 262.9 kB / 0.5341 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.081e-05/0.467, allocations: 27.06 kB / 0.5341 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004681/0.4675, allocations: 28.41 kB / 0.5341 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.865e-05/0.4675, allocations: 54.42 kB / 0.5342 GB, free: 6.484 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.000302/0.4679, allocations: 230.3 kB / 0.5344 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.927e-05/0.468, allocations: 67.06 kB / 0.5345 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/0.4691, allocations: 0.6828 MB / 0.5351 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4691, allocations: 9.938 kB / 0.5351 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.4691, allocations: 0 / 0.5351 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.4691, allocations: 7.453 kB / 0.5351 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009369/0.4701, allocations: 0.7739 MB / 0.5359 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4701, allocations: 2.469 kB / 0.5359 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006846/0.4708, allocations: 170.5 kB / 0.5361 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.4708, allocations: 8.594 kB / 0.5361 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.014e-05/0.4708, allocations: 25.27 kB / 0.5361 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.609e-05/0.4708, allocations: 9.406 kB / 0.5361 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4708, allocations: 5.062 kB / 0.5361 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.472, allocations: 0.9471 MB / 0.537 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.4722, allocations: 191.7 kB / 0.5372 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.596e-05/0.4723, allocations: 14.62 kB / 0.5372 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002651/0.4726, allocations: 21.69 kB / 0.5373 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.4727, allocations: 51.25 kB / 0.5373 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.496e-05/0.4728, allocations: 28.02 kB / 0.5373 GB, free: 4.637 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003129/0.4731, allocations: 338.8 kB / 0.5377 GB, free: 4.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4731, allocations: 0 / 0.5377 GB, free: 4.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001509/0.4746, allocations: 482.7 kB / 0.5381 GB, free: 4.289 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (71): * Single equations (assignments): 71 * 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.001006/0.4756, allocations: 0.5882 MB / 0.5387 GB, free: 3.777 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008635/0.4765, allocations: 0.6026 MB / 0.5393 GB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4765, allocations: 0 / 0.5393 GB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003128/0.4768, allocations: 285.7 kB / 0.5395 GB, free: 2.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007905/0.4776, allocations: 166 kB / 0.5397 GB, free: 2.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.4796, allocations: 1.524 MB / 0.5412 GB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.48, allocations: 0.9565 MB / 0.5421 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002494/0.4802, allocations: 127.4 kB / 0.5423 GB, free: 144 kB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4802, allocations: 0 / 0.5423 GB, free: 144 kB / 382.1 MB Notification: Performance of Templates: time 0.01666/0.4969, allocations: 12.41 MB / 0.5544 GB, free: 4.535 MB / 398.1 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)