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.001779/0.00178, allocations: 102.5 kB / 16.35 MB, free: 5.824 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.002067/0.002067, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.358/1.358, allocations: 222.9 MB / 241 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.09238/0.09238, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 61.67 kB / 371.7 MB, free: 50.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1079, allocations: 53.61 MB / 425.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.006681/0.1147, allocations: 8.548 MB / 433.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02552/0.1402, allocations: 23.25 MB / 457.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001844/0.1421, allocations: 27.81 kB / 457.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001714/0.1439, allocations: 0.5195 MB / 457.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007091/0.1511, allocations: 1.997 MB / 459.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009867/0.161, allocations: 3.006 MB / 462.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004024/0.165, allocations: 2.492 MB / 465.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001905/0.1669, allocations: 1.431 MB / 466.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001929/0.1689, allocations: 1.235 MB / 467.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002053/0.171, allocations: 1.351 MB / 469.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003826/0.1714, allocations: 216 kB / 469.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008372/0.1797, allocations: 2.594 MB / 472 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007379/0.1805, allocations: 0.5063 MB / 472.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001493/0.182, allocations: 1.093 MB / 473.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.1944, allocations: 5.018 MB / 478.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1944, allocations: 0 / 478.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1944, allocations: 0 / 478.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.074e-05/0.1945, allocations: 0 / 478.6 MB, free: 7.777 MB / 350.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.005098/0.1996, allocations: 2.658 MB / 481.3 MB, free: 5.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1996, allocations: 12.03 kB / 481.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001805/0.2015, allocations: 421.7 kB / 481.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/0.2033, allocations: 0.9554 MB / 482.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.2035, allocations: 191.5 kB / 482.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002922/0.2038, allocations: 188.3 kB / 483 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003282/0.2071, allocations: 2.086 MB / 485.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/0.2071, allocations: 0 / 485.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00016/0.2073, allocations: 68 kB / 485.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4e-05/0.2073, allocations: 44 kB / 485.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003817/0.2111, allocations: 2.581 MB / 487.8 MB, free: 14.45 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.0109/0.222, allocations: 6.334 MB / 494.1 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005566/0.2276, allocations: 2.533 MB / 496.7 MB, free: 5.285 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001556/0.2292, allocations: 0.855 MB / 497.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01309/0.2423, allocations: 8.072 MB / 0.4938 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.2424, allocations: 43.69 kB / 0.4938 GB, free: 11.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 2.956e-06/0.2424, allocations: 0 / 0.4938 GB, free: 11.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=150): time 0.02815/0.2706, allocations: 6.183 MB / 0.4998 GB, free: 5.016 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.954e-05/0.2707, allocations: 94.42 kB / 0.4999 GB, free: 4.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.272, allocations: 0.9412 MB / 0.5008 GB, free: 3.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001324/0.2722, allocations: 53.7 kB / 0.5009 GB, free: 3.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007097/0.2729, allocations: 0.8249 MB / 0.5017 GB, free: 3.051 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004597/0.2733, allocations: 0.5238 MB / 0.5022 GB, free: 2.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00049/0.2738, allocations: 375.2 kB / 0.5026 GB, free: 2.145 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.274, allocations: 301.1 kB / 0.5029 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000926/0.2749, allocations: 0.5272 MB / 0.5034 GB, free: 1.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2154/0.4903, allocations: 1.243 MB / 0.5046 GB, free: 78.09 MB / 382.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.002836/0.4932, allocations: 2.044 MB / 0.5066 GB, free: 77.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/0.4932, allocations: 7.094 kB / 0.5066 GB, free: 77.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008889/0.5021, allocations: 2.537 MB / 0.5091 GB, free: 76.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.5022, allocations: 16.14 kB / 0.5091 GB, free: 76.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.651e-05/0.5022, allocations: 23.66 kB / 0.5091 GB, free: 76.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005714/0.508, allocations: 0.7013 MB / 0.5098 GB, free: 76.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/0.5102, allocations: 0.5247 MB / 0.5103 GB, free: 76.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.5222, allocations: 8.25 MB / 0.5184 GB, free: 69.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.5243, allocations: 73.95 kB / 0.5184 GB, free: 69.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003589/0.5247, allocations: 114.1 kB / 0.5185 GB, free: 69.65 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.001043/0.5258, allocations: 383.2 kB / 0.5189 GB, free: 69.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004888/0.5263, allocations: 142.8 kB / 0.519 GB, free: 69.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009347/0.5356, allocations: 2.476 MB / 0.5215 GB, free: 68.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.365e-05/0.5357, allocations: 14.38 kB / 0.5215 GB, free: 68.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/0.5357, allocations: 2.25 kB / 0.5215 GB, free: 68.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.612e-05/0.5358, allocations: 8.625 kB / 0.5215 GB, free: 68.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006526/0.5423, allocations: 2.53 MB / 0.524 GB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/0.5424, allocations: 2.75 kB / 0.524 GB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/0.5438, allocations: 317.6 kB / 0.5243 GB, free: 67.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006544/0.5504, allocations: 0.7483 MB / 0.525 GB, free: 67.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002752/0.5507, allocations: 43.75 kB / 0.525 GB, free: 67.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.5611, allocations: 9.488 MB / 0.5343 GB, free: 58.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.5611, allocations: 8.031 kB / 0.5343 GB, free: 58.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008772/0.5699, allocations: 2.813 MB / 0.537 GB, free: 57.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004845/0.5704, allocations: 206.9 kB / 0.5372 GB, free: 56.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/0.5706, allocations: 30.81 kB / 0.5373 GB, free: 56.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007919/0.5714, allocations: 35.91 kB / 0.5373 GB, free: 56.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000323/0.5718, allocations: 119.5 kB / 0.5374 GB, free: 56.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.583e-05/0.5719, allocations: 56.14 kB / 0.5375 GB, free: 56.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007564/0.5726, allocations: 0.6331 MB / 0.5381 GB, free: 56.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5726, allocations: 0 / 0.5381 GB, free: 56.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003612/0.5762, allocations: 1.062 MB / 0.5391 GB, free: 56.25 MB / 382.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.001973/0.5782, allocations: 1.085 MB / 0.5402 GB, free: 55.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003335/0.5816, allocations: 2.082 MB / 0.5422 GB, free: 53.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5816, allocations: 0 / 0.5422 GB, free: 53.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.5833, allocations: 1.366 MB / 0.5436 GB, free: 52.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.585, allocations: 342 kB / 0.5439 GB, free: 51.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004231/0.5892, allocations: 2.987 MB / 0.5468 GB, free: 48.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.5898, allocations: 1.266 MB / 0.548 GB, free: 47.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.5909, allocations: 326.3 kB / 0.5484 GB, free: 47.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003663/0.5913, allocations: 203.3 kB / 0.5485 GB, free: 47.04 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5913, allocations: 0 / 0.5485 GB, free: 47.04 MB / 382.1 MB Notification: Performance of Templates: time 0.04498/0.6363, allocations: 37.34 MB / 0.585 GB, free: 9.895 MB / 382.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)