Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ExothermicReaction.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.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ExothermicReaction") translateModel(Chemical.Examples.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ExothermicReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001617/0.001617, allocations: 192.8 kB / 16.13 MB, free: 6.707 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.372/1.372, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2197/0.2197, allocations: 15.31 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 71.89 kB / 369.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.118, allocations: 53.6 MB / 423.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.0105/0.1285, allocations: 9.686 MB / 432.9 MB, free: 5.074 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.21/0.3386, allocations: 23.21 MB / 456.2 MB, free: 36.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003273/0.3419, allocations: 45.41 kB / 456.2 MB, free: 36.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002062/0.344, allocations: 473.9 kB / 456.7 MB, free: 36.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007026/0.3511, allocations: 1.745 MB / 458.4 MB, free: 35.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009983/0.3611, allocations: 2.62 MB / 461 MB, free: 34.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003844/0.365, allocations: 2.425 MB / 463.4 MB, free: 33.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.3668, allocations: 1.23 MB / 464.7 MB, free: 33.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001671/0.3685, allocations: 1.164 MB / 465.8 MB, free: 32.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001935/0.3704, allocations: 1.335 MB / 467.2 MB, free: 32.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004379/0.3709, allocations: 140.5 kB / 467.3 MB, free: 32.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01086/0.3817, allocations: 2.531 MB / 469.8 MB, free: 31.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.383, allocations: 465.2 kB / 470.3 MB, free: 31.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001787/0.3848, allocations: 1.022 MB / 471.3 MB, free: 30.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01273/0.3975, allocations: 4.708 MB / 476 MB, free: 28.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3975, allocations: 0 / 476 MB, free: 28.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3976, allocations: 1.344 kB / 476 MB, free: 28.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.747e-05/0.3976, allocations: 0 / 476 MB, free: 28.76 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 455 * Number of variables: 455 Notification: Performance of Generate backend data structure: time 0.006905/0.4046, allocations: 2.66 MB / 478.7 MB, free: 27.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.4046, allocations: 9.594 kB / 478.7 MB, free: 27.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002234/0.4069, allocations: 412.9 kB / 479.1 MB, free: 27.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002012/0.4089, allocations: 0.9245 MB / 480 MB, free: 26.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.4091, allocations: 194.1 kB / 480.2 MB, free: 26.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004205/0.4095, allocations: 184.2 kB / 480.4 MB, free: 26.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004717/0.4143, allocations: 2.089 MB / 482.5 MB, free: 25.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.015e-05/0.4143, allocations: 5.625 kB / 482.5 MB, free: 25.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.4145, allocations: 70.61 kB / 482.6 MB, free: 25.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.531e-05/0.4146, allocations: 47.3 kB / 482.6 MB, free: 25.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004876/0.4195, allocations: 2.585 MB / 485.2 MB, free: 24.7 MB / 366.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.01372/0.4332, allocations: 6.356 MB / 491.5 MB, free: 21.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006132/0.4394, allocations: 2.528 MB / 494.1 MB, free: 19.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.4412, allocations: 0.8509 MB / 494.9 MB, free: 19.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/0.4546, allocations: 8.104 MB / 0.4912 GB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.4547, allocations: 49.38 kB / 0.4913 GB, free: 13.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 4.007e-06/0.4547, allocations: 0 / 0.4913 GB, free: 13.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.0317/0.4864, allocations: 6.173 MB / 0.4973 GB, free: 8.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.4865, allocations: 94.42 kB / 0.4974 GB, free: 8.797 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.4878, allocations: 0.9412 MB / 0.4983 GB, free: 7.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003471/0.4882, allocations: 53.7 kB / 0.4984 GB, free: 7.781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004569/0.4887, allocations: 0.8326 MB / 0.4992 GB, free: 6.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006342/0.4893, allocations: 0.5122 MB / 0.4997 GB, free: 6.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007057/0.49, allocations: 371.2 kB / 0.5 GB, free: 6.043 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.36e-05/0.4901, allocations: 309.1 kB / 0.5003 GB, free: 5.738 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009836/0.4911, allocations: 0.5272 MB / 0.5009 GB, free: 5.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.4924, allocations: 1.251 MB / 0.5021 GB, free: 3.613 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start (fixedTemperature.T = solution_at_constant_temperature.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.00258/0.495, allocations: 2.041 MB / 0.5041 GB, free: 1.219 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.761e-05/0.4951, allocations: 8 kB / 0.5041 GB, free: 1.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.009563/0.5046, allocations: 2.541 MB / 0.5066 GB, free: 14.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.582e-05/0.5047, allocations: 20.03 kB / 0.5066 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.215e-05/0.5048, allocations: 27.98 kB / 0.5066 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006387/0.5112, allocations: 0.6979 MB / 0.5073 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002518/0.5138, allocations: 0.5188 MB / 0.5078 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/0.5273, allocations: 7.468 MB / 0.5151 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/0.5299, allocations: 119.8 kB / 0.5152 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005381/0.5304, allocations: 111.9 kB / 0.5153 GB, free: 5.133 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (241): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,6,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001478/0.5319, allocations: 393 kB / 0.5157 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007506/0.5327, allocations: 138.3 kB / 0.5158 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/0.543, allocations: 2.469 MB / 0.5182 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.456e-05/0.5431, allocations: 16 kB / 0.5182 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.801e-05/0.5432, allocations: 0 / 0.5182 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.564e-05/0.5433, allocations: 15.91 kB / 0.5183 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009035/0.5523, allocations: 2.528 MB / 0.5207 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.93e-05/0.5524, allocations: 0 / 0.5207 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/0.5543, allocations: 307.6 kB / 0.521 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00722/0.5616, allocations: 0.7494 MB / 0.5217 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004663/0.5621, allocations: 43.92 kB / 0.5218 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/0.5756, allocations: 8.59 MB / 0.5302 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/0.5756, allocations: 11.92 kB / 0.5302 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/0.5861, allocations: 2.826 MB / 0.533 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.5869, allocations: 203.3 kB / 0.5331 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005278/0.5874, allocations: 31.98 kB / 0.5332 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/0.5888, allocations: 55.83 kB / 0.5332 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004316/0.5892, allocations: 124.9 kB / 0.5333 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/0.5894, allocations: 51.98 kB / 0.5334 GB, free: 1.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.5905, allocations: 0.6342 MB / 0.534 GB, free: 1.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5905, allocations: 4 kB / 0.534 GB, free: 1.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004737/0.5952, allocations: 1.038 MB / 0.535 GB, free: 15.99 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (A1.logn,B1.logn,H2O.logn,A.logn,B.logn,H2O1.amountOfBonds,H2O1.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 (137): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,1), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003289/0.5985, allocations: 1.097 MB / 0.5361 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004519/0.6031, allocations: 2.068 MB / 0.5381 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.6031, allocations: 0 / 0.5381 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002521/0.6056, allocations: 1.368 MB / 0.5395 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/0.6083, allocations: 300.9 kB / 0.5397 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006918/0.6152, allocations: 3.737 MB / 0.5434 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.6166, allocations: 1.264 MB / 0.5446 GB, free: 5.965 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001868/0.6185, allocations: 332 kB / 0.5449 GB, free: 5.637 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006722/0.6192, allocations: 195.3 kB / 0.5451 GB, free: 5.445 MB / 414.1 MB Notification: Performance of SimCode: time 1.663e-06/0.6192, allocations: 4 kB / 0.5451 GB, free: 5.441 MB / 414.1 MB Notification: Performance of Templates: time 0.06234/0.6816, allocations: 35.95 MB / 0.5802 GB, free: 1.633 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.ExothermicReaction.makefile (rm -f Chemical_Chemical.Examples.ExothermicReaction.pipe ; mkfifo Chemical_Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ExothermicReaction.pipe >> ../files/Chemical_Chemical.Examples.ExothermicReaction.sim & ./Chemical_Chemical.Examples.ExothermicReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)