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.00102/0.00102, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007561/0.007561, allocations: 169.8 kB / 16.27 MB, free: 6.344 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.394/1.394, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2507/0.2507, allocations: 15.27 MB / 306.7 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003648, allocations: 15.98 kB / 372.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3574, allocations: 54.62 MB / 426.7 MB, free: 40.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.00817/0.3657, allocations: 9.203 MB / 435.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02376/0.3895, allocations: 22.99 MB / 458.9 MB, free: 19.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002349/0.3919, allocations: 41.09 kB / 458.9 MB, free: 19.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.3936, allocations: 465.6 kB / 459.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007171/0.4008, allocations: 1.739 MB / 461.1 MB, free: 18.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008884/0.4097, allocations: 2.632 MB / 463.8 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003655/0.4134, allocations: 2.427 MB / 466.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001558/0.4149, allocations: 1.166 MB / 467.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.4164, allocations: 1.114 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001833/0.4183, allocations: 1.247 MB / 469.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00029/0.4186, allocations: 117.2 kB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0103/0.4289, allocations: 2.509 MB / 472.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009864/0.4299, allocations: 415.6 kB / 472.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003313/0.4333, allocations: 1.002 MB / 473.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01668/0.45, allocations: 4.65 MB / 478.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.45, allocations: 0 / 478.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.45, allocations: 1.312 kB / 478.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000156/0.4502, allocations: 0 / 478.4 MB, free: 11.18 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.008051/0.4582, allocations: 2.206 MB / 480.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.4583, allocations: 13.59 kB / 480.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002955/0.4613, allocations: 413.7 kB / 481 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.4639, allocations: 0.8983 MB / 481.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003108/0.4643, allocations: 194.8 kB / 482.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008659/0.4652, allocations: 182.6 kB / 482.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005708/0.4709, allocations: 2.086 MB / 484.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.921e-05/0.4709, allocations: 0 / 484.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001811/0.4711, allocations: 72.31 kB / 484.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.371e-05/0.4712, allocations: 46.75 kB / 484.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00494/0.4761, allocations: 2.585 MB / 487.1 MB, free: 7.332 MB / 350.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.01183/0.488, allocations: 6.288 MB / 493.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004293/0.4923, allocations: 2.534 MB / 495.9 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.4937, allocations: 0.8551 MB / 496.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/0.5051, allocations: 7.908 MB / 0.4928 GB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/0.5052, allocations: 55.61 kB / 0.4929 GB, free: 6.488 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.266e-06/0.5052, allocations: 4 kB / 0.4929 GB, free: 6.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.03035/0.5356, allocations: 6.27 MB / 0.499 GB, free: 52 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/0.5357, allocations: 90.42 kB / 0.4991 GB, free: 15.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.5369, allocations: 0.9451 MB / 0.5 GB, free: 14.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002771/0.5372, allocations: 53.7 kB / 0.5001 GB, free: 14.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005871/0.5378, allocations: 0.8288 MB / 0.5009 GB, free: 14.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006812/0.5385, allocations: 0.516 MB / 0.5014 GB, free: 13.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.5387, allocations: 157.6 kB / 0.5015 GB, free: 13.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.5388, allocations: 305.1 kB / 0.5018 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009568/0.5398, allocations: 0.5349 MB / 0.5024 GB, free: 12.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.5412, allocations: 1.247 MB / 0.5036 GB, free: 10.97 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.002757/0.5439, allocations: 2.041 MB / 0.5056 GB, free: 8.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/0.544, allocations: 8 kB / 0.5056 GB, free: 8.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.00951/0.5535, allocations: 2.58 MB / 0.5081 GB, free: 5.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.5536, allocations: 17.56 kB / 0.5081 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.894e-05/0.5536, allocations: 24 kB / 0.5081 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006617/0.5602, allocations: 0.737 MB / 0.5089 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002248/0.5625, allocations: 0.5188 MB / 0.5094 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/0.5757, allocations: 7.547 MB / 0.5167 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/0.5785, allocations: 111.9 kB / 0.5168 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006705/0.5792, allocations: 112 kB / 0.5169 GB, free: 12.34 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.001218/0.5805, allocations: 385.1 kB / 0.5173 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004941/0.581, allocations: 138.2 kB / 0.5174 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/0.5917, allocations: 2.523 MB / 0.5199 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.411e-05/0.5918, allocations: 12 kB / 0.5199 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.5918, allocations: 7.938 kB / 0.5199 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-05/0.5918, allocations: 7.969 kB / 0.5199 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006945/0.5988, allocations: 2.544 MB / 0.5224 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/0.5988, allocations: 4 kB / 0.5224 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/0.6004, allocations: 315.8 kB / 0.5227 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00765/0.6081, allocations: 0.8038 MB / 0.5235 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002436/0.6083, allocations: 43.98 kB / 0.5235 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01307/0.6214, allocations: 8.634 MB / 0.532 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.6215, allocations: 7.938 kB / 0.532 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01078/0.6323, allocations: 2.865 MB / 0.5348 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006543/0.633, allocations: 219.3 kB / 0.535 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004546/0.6334, allocations: 28 kB / 0.535 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.6347, allocations: 59.83 kB / 0.5351 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003997/0.6352, allocations: 128.9 kB / 0.5352 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/0.6353, allocations: 47.98 kB / 0.5352 GB, free: 8.664 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001147/0.6365, allocations: 0.642 MB / 0.5359 GB, free: 8.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6365, allocations: 0 / 0.5359 GB, free: 8.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004594/0.6411, allocations: 1.042 MB / 0.5369 GB, free: 6.973 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.003717/0.6448, allocations: 1.085 MB / 0.538 GB, free: 5.879 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004567/0.6494, allocations: 2.068 MB / 0.54 GB, free: 3.758 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.6494, allocations: 0 / 0.54 GB, free: 3.758 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002348/0.6518, allocations: 1.379 MB / 0.5413 GB, free: 2.316 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/0.6548, allocations: 305.5 kB / 0.5416 GB, free: 2.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00668/0.6615, allocations: 3.84 MB / 0.5454 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.6626, allocations: 1.268 MB / 0.5466 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001654/0.6643, allocations: 328 kB / 0.5469 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005305/0.6648, allocations: 199.3 kB / 0.5471 GB, free: 12.3 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6649, allocations: 0 / 0.5471 GB, free: 12.3 MB / 430.1 MB Notification: Performance of Templates: time 0.05927/0.7241, allocations: 35.98 MB / 0.5822 GB, free: 8.453 MB / 462.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)