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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.09642/0.09642, allocations: 15.28 MB / 31.08 MB, free: 3.105 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 193.1 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 264 MB, free: 4.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009249/0.0009248, allocations: 98.31 kB / 318.4 MB, free: 3.441 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009857/0.0009857, allocations: 56.83 kB / 382.7 MB, free: 48.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09115, allocations: 53.61 MB / 436.3 MB, free: 1.055 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.009522/0.1007, allocations: 9.687 MB / 446 MB, free: 7.324 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02487/0.1256, allocations: 23.01 MB / 469 MB, free: 236 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001954/0.1276, allocations: 39.69 kB / 469.1 MB, free: 196 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.1291, allocations: 465.4 kB / 469.5 MB, free: 15.73 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005597/0.1347, allocations: 1.684 MB / 471.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007597/0.1424, allocations: 2.631 MB / 473.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003635/0.146, allocations: 2.441 MB / 476.3 MB, free: 8.941 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.1475, allocations: 1.237 MB / 477.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/0.1489, allocations: 1.173 MB / 478.7 MB, free: 6.48 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001571/0.1505, allocations: 1.32 MB / 480 MB, free: 5.156 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002632/0.1507, allocations: 148 kB / 480.1 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006957/0.1577, allocations: 2.453 MB / 482.6 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007943/0.1585, allocations: 458.4 kB / 483 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0016/0.1602, allocations: 1.019 MB / 484.1 MB, free: 1.082 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01095/0.1711, allocations: 4.64 MB / 488.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1712, allocations: 0 / 488.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1712, allocations: 0 / 488.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001178/0.1713, allocations: 0 / 488.7 MB, free: 12.43 MB / 362.7 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.005817/0.1771, allocations: 2.644 MB / 491.3 MB, free: 9.727 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1772, allocations: 8.875 kB / 491.3 MB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/0.1788, allocations: 413.9 kB / 491.8 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.1805, allocations: 0.9318 MB / 492.7 MB, free: 8.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.1807, allocations: 199.5 kB / 492.9 MB, free: 8.133 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002703/0.1809, allocations: 180.3 kB / 493.1 MB, free: 7.957 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003181/0.1841, allocations: 2.09 MB / 495.1 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.024e-05/0.1842, allocations: 0 / 495.1 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001568/0.1843, allocations: 72 kB / 495.2 MB, free: 5.766 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.433e-05/0.1844, allocations: 48 kB / 495.3 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003627/0.188, allocations: 2.581 MB / 497.8 MB, free: 3.137 MB / 362.7 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.009708/0.1977, allocations: 6.345 MB / 0.4924 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004727/0.2025, allocations: 2.536 MB / 0.4948 GB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.2037, allocations: 0.8505 MB / 0.4957 GB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01034/0.2141, allocations: 8.099 MB / 0.5036 GB, free: 80 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.2141, allocations: 43.69 kB / 0.5036 GB, free: 24 kB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 4.879e-06/0.2142, allocations: 0 / 0.5036 GB, free: 24 kB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.1937/0.4079, allocations: 6.168 MB / 0.5097 GB, free: 70.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.4079, allocations: 98.58 kB / 0.5097 GB, free: 70.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.4091, allocations: 0.9371 MB / 0.5107 GB, free: 70.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.4092, allocations: 57.8 kB / 0.5107 GB, free: 70.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003885/0.4096, allocations: 0.8358 MB / 0.5115 GB, free: 69.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003185/0.4099, allocations: 0.5083 MB / 0.512 GB, free: 69.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004442/0.4104, allocations: 374.9 kB / 0.5124 GB, free: 69.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.953e-05/0.4104, allocations: 307.5 kB / 0.5127 GB, free: 69.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008774/0.4113, allocations: 0.5298 MB / 0.5132 GB, free: 69.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.4125, allocations: 1.242 MB / 0.5144 GB, free: 68.36 MB / 378.7 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.002515/0.415, allocations: 2.039 MB / 0.5164 GB, free: 67.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.925e-05/0.4151, allocations: 7.156 kB / 0.5164 GB, free: 67.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008236/0.4233, allocations: 2.541 MB / 0.5189 GB, free: 66.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.4234, allocations: 14.81 kB / 0.5189 GB, free: 66.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.538e-05/0.4234, allocations: 27.28 kB / 0.5189 GB, free: 66.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005584/0.429, allocations: 0.7002 MB / 0.5196 GB, free: 66.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002297/0.4313, allocations: 0.5217 MB / 0.5201 GB, free: 66.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00995/0.4413, allocations: 7.469 MB / 0.5274 GB, free: 60.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.4429, allocations: 117.1 kB / 0.5275 GB, free: 60.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003096/0.4433, allocations: 111.8 kB / 0.5276 GB, free: 60.29 MB / 378.7 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.0008372/0.4441, allocations: 380.9 kB / 0.528 GB, free: 60 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004035/0.4445, allocations: 144.2 kB / 0.5281 GB, free: 59.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008468/0.453, allocations: 2.481 MB / 0.5306 GB, free: 58.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.453, allocations: 11.84 kB / 0.5306 GB, free: 58.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/0.4531, allocations: 3.938 kB / 0.5306 GB, free: 58.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.09e-05/0.4531, allocations: 10.05 kB / 0.5306 GB, free: 58.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004868/0.458, allocations: 2.536 MB / 0.5331 GB, free: 57.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.458, allocations: 4.531 kB / 0.5331 GB, free: 57.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/0.4593, allocations: 307.9 kB / 0.5334 GB, free: 57.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006076/0.4654, allocations: 0.7505 MB / 0.5341 GB, free: 57.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.4655, allocations: 48.66 kB / 0.5341 GB, free: 57.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009286/0.4748, allocations: 8.592 MB / 0.5425 GB, free: 49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4749, allocations: 3.969 kB / 0.5425 GB, free: 49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08729/0.5622, allocations: 23.97 MB / 0.5659 GB, free: 26.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.5625, allocations: 207.2 kB / 0.5661 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/0.5628, allocations: 31.98 kB / 0.5662 GB, free: 26.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008925/0.5637, allocations: 51.95 kB / 0.5662 GB, free: 26.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.564, allocations: 124.9 kB / 0.5663 GB, free: 25.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.506e-05/0.5641, allocations: 51.98 kB / 0.5664 GB, free: 25.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006929/0.5648, allocations: 0.6381 MB / 0.567 GB, free: 25.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5648, allocations: 0 / 0.567 GB, free: 25.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003595/0.5684, allocations: 1.28 MB / 0.5683 GB, free: 24.04 MB / 378.7 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.001555/0.5699, allocations: 1.06 MB / 0.5693 GB, free: 23.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003094/0.573, allocations: 2.073 MB / 0.5713 GB, free: 21.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5731, allocations: 0 / 0.5713 GB, free: 21.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.5747, allocations: 1.364 MB / 0.5726 GB, free: 19.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/0.5763, allocations: 307.5 kB / 0.5729 GB, free: 19.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005627/0.582, allocations: 5.133 MB / 0.578 GB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005635/0.5825, allocations: 1.316 MB / 0.5792 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001361/0.5839, allocations: 352.4 kB / 0.5796 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004318/0.5843, allocations: 205.3 kB / 0.5798 GB, free: 12.25 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5844, allocations: 0 / 0.5798 GB, free: 12.25 MB / 378.7 MB Notification: Performance of Templates: time 0.05804/0.6424, allocations: 44.51 MB / 0.6232 GB, free: 15.93 MB / 426.7 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)